예제 #1
0
 public function testGetSupported_Properties()
 {
     $value = DAV::getSupported_Properties();
     $expectedResult = array_merge(DAV::$WEBDAV_PROPERTIES, DAV::$PRINCIPAL_PROPERTIES, DAV::$ACL_PROPERTIES);
     $this->assertSame($expectedResult, $value);
 }
예제 #2
0
 /**
  * @see DAV_Resource::user_propname()
  */
 public function user_propname()
 {
     $this->init_props();
     $retval = array();
     $SUPPORTED_PROPERTIES = DAV::getSupported_Properties();
     foreach (array_keys($this->stored_props) as $prop) {
         if (!isset($SUPPORTED_PROPERTIES[$prop])) {
             $retval[$prop] = true;
         }
     }
     return $retval;
 }