Carew\Tests\CarewTest::testRunWithConfigThrowExceptionIfExtensionClassDoesNotImplementsInterface PHP 메소드

testRunWithConfigThrowExceptionIfExtensionClassDoesNotImplementsInterface() 공개 메소드

    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());
    }