public static function php81TypesProvider() { return [ ['nothing', null
],
['collection',
[new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Traversable'
),
new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Countable'
)]],
];
} public function testReadonlyPropertiesAreNotWriteable() { $this->
assertFalse($this->extractor->
isWritable(Php81Dummy::
class, 'foo'
));
} /**
* @dataProvider php82TypesProvider
*
* @requires PHP 8.2
*/
public function testExtractPhp82Type($property, array
$type = null
) { $this->
assertEquals($type,
$this->extractor->
getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\Php82Dummy',
$property,
[]));
}