NullExtractor example

use Symfony\Component\PropertyInfo\Type;

/** * @author Kévin Dunglas <dunglas@gmail.com> */
class AbstractPropertyInfoExtractorTest extends TestCase
{
    protected PropertyInfoExtractorInterface $propertyInfo;

    protected function setUp(): void
    {
        $extractors = [new NullExtractor()new DummyExtractor()];
        $this->propertyInfo = new PropertyInfoExtractor($extractors$extractors$extractors$extractors$extractors);
    }

    public function testInstanceOf()
    {
        $this->assertInstanceOf(PropertyInfoExtractorInterface::class$this->propertyInfo);
        $this->assertInstanceOf(PropertyTypeExtractorInterface::class$this->propertyInfo);
        $this->assertInstanceOf(PropertyDescriptionExtractorInterface::class$this->propertyInfo);
        $this->assertInstanceOf(PropertyAccessExtractorInterface::class$this->propertyInfo);
        $this->assertInstanceOf(PropertyInitializableExtractorInterface::class$this->propertyInfo);
    }

    
Home | Imprint | This part of the site doesn't use cookies.