className = 'ezcWebdavLockDiscoveryPropertyActiveLock'; $this->propertyName = 'activelock'; $this->defaultValues = array( 'lockType' => ezcWebdavLockRequest::TYPE_READ, 'lockScope' => ezcWebdavLockRequest::SCOPE_SHARED, 'depth' => ezcWebdavRequest::DEPTH_INFINITY, 'owner' => null, 'timeout' => null, 'tokens' => array(), ); $this->workingValues = array( 'lockType' => array( ezcWebdavLockRequest::TYPE_READ, ezcWebdavLockRequest::TYPE_WRITE, ), 'lockScope' => array( ezcWebdavLockRequest::SCOPE_SHARED, ezcWebdavLockRequest::SCOPE_EXCLUSIVE, ), 'depth' => array( ezcWebdavRequest::DEPTH_ZERO, ezcWebdavRequest::DEPTH_ONE, ezcWebdavRequest::DEPTH_INFINITY, ), 'owner' => array( null, '', 'Foo Bar', ), 'timeout' => array( null, new ezcWebdavDateTime( '+3 hours' ), ), 'tokens' => array( array(), array( 'foo', 'bar' ), ), ); $this->failingValues = array( 'lockType' => array( 23, 23.34, 'foobar', true, false, new stdClass(), array(), ), 'lockScope' => array( 23, 23.34, 'foobar', true, false, new stdClass(), array(), ), 'depth' => array( 23, 23.34, 'foobar', true, false, new stdClass(), array(), ), 'owner' => array( 23, 23.34, true, false, new stdClass(), array(), ), 'timeout' => array( 23, 23.34, 'foobar', true, false, new stdClass(), array(), ), 'tokens' => array( 23, 23.34, 'foobar', true, false, new stdClass(), ), ); $this->alwaysHasContent = true; } } ?>