public function testJsonConversion() { $json = DAVACL_Element_ace::aces2json(array($this->obj)); $objects = DAVACL_Element_ace::json2aces($json); $expected = array($this->obj); $expected[0]->inherited = null; $this->assertEquals($expected, $objects, 'Json created with DAVACL_Element_ace::aces2json() should be converted back to the original objects by DAVACL_Element_ace::json2aces(), except for the inherited property, which should be null after deserialization'); }
/** * @return Array a list of ACEs. * @see BeeHub_Resource::user_prop_acl_internal() */ public function user_prop_acl_internal() { return DAVACL_Element_ace::json2aces($this->user_prop(DAV::PROP_ACL)); }