public function testToObject() { $keys = array('guid', 'type', 'subtype', 'time_created', 'time_updated', 'container_guid', 'owner_guid', 'site_guid', 'url', 'read_access'); sort($keys); $object = $this->obj->toObject(); $object_keys = array_keys(get_object_vars($object)); sort($object_keys); $this->assertEquals($keys, $object_keys); }