public testReadOnlyProperty ( ) |
public function testReadOnlyProperty()
{
try {
$location = new Location();
$location->id = 42;
self::fail('Succeeded setting read only property');
} catch (PropertyReadOnlyException $e) {
}
}