DrestTests\Mapping\AnnotationDriverTest::testRemovingExtension PHP 메소드

testRemovingExtension() 공개 메소드

    public function testRemovingExtension()
    {
        $annotationDriver = \Drest\Mapping\Driver\AnnotationDriver::create(array(__DIR__ . '/../Entities/Typical'));
        $annotationDriver->removeExtensions();
        $metadataFactory = new MetadataFactory($annotationDriver);
        $this->assertCount(0, $metadataFactory->getAllClassNames());
        $annotationDriver->addExtension('php');
        $this->assertGreaterThan(0, $metadataFactory->getAllClassNames());
    }