ApiPlatform\Core\Tests\Metadata\Property\Factory\AnnotationPropertyMetadataFactoryTest::testClassNotFoundButParentFound PHP Method

testClassNotFoundButParentFound() public method

    public function testClassNotFoundButParentFound()
    {
        $propertyMetadata = new PropertyMetadata();
        $decoratedProphecy = $this->prophesize(PropertyMetadataFactoryInterface::class);
        $decoratedProphecy->create('\\DoNotExist', 'foo', [])->willReturn($propertyMetadata);
        $factory = new AnnotationPropertyMetadataFactory($this->prophesize(Reader::class)->reveal(), $decoratedProphecy->reveal());
        $this->assertEquals($propertyMetadata, $factory->create('\\DoNotExist', 'foo'));
    }