toObject() 공개 메소드

public toObject ( )
예제 #1
0
 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);
 }