Carew\Tests\CarewTest::testRunWithConfigThrowExceptionIfExtensionClassDoesNotImplementsInterface PHP Method

testRunWithConfigThrowExceptionIfExtensionClassDoesNotImplementsInterface() public method

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