public function testUnsetProperty() { $location = new Location(array('id' => 2)); try { unset($location->id); self::fail('Unsetting read-only property succeeded'); } catch (PropertyReadOnlyException $e) { } }