Carew\Tests\CarewTest::testRunWithConfigThrowExceptionIfExtensionClassDoesNotExists PHP Méthode

testRunWithConfigThrowExceptionIfExtensionClassDoesNotExists() public méthode

    public function testRunWithConfigThrowExceptionIfExtensionClassDoesNotExists()
    {
        $application = new ApplicationTester($this->carew);
        $statusCode = $application->run(array('command' => 'list', '--base-dir' => __DIR__ . '/Command/fixtures/config-exception-class-not-exists'));
        $this->assertSame(1, $statusCode);
        $this->assertContains('The class "FooBar" does not exists. See "config.yml".', $application->getDisplay());
    }