FYI you could create a mock of the interface : `$this->getMock('Symfony\Component\DependencyInjection\ContainerInterface')`, much simpler, does the same :)