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