/** * Test the service methods for the container inside a command. */ public function testServices() { $this->assertNull($this->command->get('console')); $container = new ContainerBuilder(); $console = $container->register('console', '\\Symfony\\Component\\Console\\Application'); $console->addArgument('slic'); $this->command->setContainer($container); $this->assertInstanceOf('\\Symfony\\Component\\Console\\Application', $this->command->get('console')); }