/** * Test the functionallity to properly set a command and the functionality * that comes from it. */ public function testCommandRegistration() { $commandName = 'slic:test'; $command = new CommandMock($commandName); $this->assertSame($this->application, $this->application->registerCommand($command)); $this->assertSame($command, $this->application->getCommand($commandName)); $this->assertInstanceOf('\\Symfony\\Component\\DependencyInjection\\ContainerInterface', $this->application->getCommand($commandName)->getContainer()); }