application = new Application(); $command = new InfoCommand(); $this->application->setHelperSet(new HelperSet(array( 'em' => new EntityManagerHelper($this->_em) ))); $this->application->add($command); $this->command = $this->application->find('orm:info'); $this->tester = new CommandTester($command); } public function testListAllClasses() { $this->tester->execute(array( 'command' => $this->command->getName(), )); $this->assertContains('Doctrine\Tests\Models\Cache\AttractionInfo', $this->tester->getDisplay()); $this->assertContains('Doctrine\Tests\Models\Cache\City', $this->tester->getDisplay()); } }