Certificationy\Cli\Tests\Command\StartCommandTest::testCanListCategories PHP Метод

testCanListCategories() публичный Метод

    public function testCanListCategories()
    {
        $commandTester = new CommandTester($this->command);
        $commandTester->execute(array('command' => $this->command->getName(), '-l' => true));
        $output = $commandTester->getDisplay();
        $this->assertRegExp('/Templating/', $output);
        $this->assertCount(count(Loader::getCategories($this->configFile)) + 1, explode("\n", $output));
    }