$this->
assertContains('baz',
$properties);
$this->
assertFalse($protectedExtractor->
isReadable(Dummy::
class, 'bar'
));
$this->
assertTrue($protectedExtractor->
isReadable(Dummy::
class, 'baz'
));
} /**
* @dataProvider getInitializableProperties
*/
public function testIsInitializable(string
$class, string
$property, bool
$expected) { $this->
assertSame($expected,
$this->extractor->
isInitializable($class,
$property));
} public static function getInitializableProperties(): array
{ return [ [Php71Dummy::
class, 'string', true
],
[Php71Dummy::
class, 'intPrivate', true
],
[Php71Dummy::
class, 'notExist', false
],
[Php71DummyExtended2::
class, 'intWithAccessor', true
],
[Php71DummyExtended2::
class, 'intPrivate', false
],
[NotInstantiable::
class, 'foo', false
],
];