[Php71Dummy::
class, 'string',
[new Type(Type::BUILTIN_TYPE_STRING, false
)]],
[Php71Dummy::
class, 'intPrivate',
[new Type(Type::BUILTIN_TYPE_INT, false
)]],
// Php71DummyExtended2 adds int $intWithAccessor
[Php71DummyExtended2::
class, 'intWithAccessor',
[new Type(Type::BUILTIN_TYPE_INT, false
)]],
[Php71DummyExtended2::
class, 'intPrivate',
[new Type(Type::BUILTIN_TYPE_INT, false
)]],
[DefaultValue::
class, 'foo', null
],
];
} public function testNullOnPrivateProtectedAccessor() { $barAcessor =
$this->extractor->
getReadInfo(Dummy::
class, 'bar'
);
$barMutator =
$this->extractor->
getWriteInfo(Dummy::
class, 'bar'
);
$bazAcessor =
$this->extractor->
getReadInfo(Dummy::
class, 'baz'
);
$bazMutator =
$this->extractor->
getWriteInfo(Dummy::
class, 'baz'
);
$this->
assertNull($barAcessor);
$this->
assertEquals(PropertyWriteInfo::TYPE_NONE,
$barMutator->
getType());
$this->
assertNull($bazAcessor);
$this->
assertEquals(PropertyWriteInfo::TYPE_NONE,
$bazMutator->
getType());
} public function testTypedProperties() {