server = self::getServer( new ezcWebdavBasicPathFactory( 'http://example.com' ) ); $test->server->pluginRegistry->registerPlugin( new ezcWebdavLockPluginConfiguration( new ezcWebdavLockPluginOptions( array( 'lockTimeout' => 604800, 'backendLockTimeout' => 2000000, ) ) ) ); $test->server->auth = new ezcWebdavClientTestRfcLockAuth(); $test->server->auth->credentials['foo'] = 'bar'; $backendFile = "{$testSetName}_backend.php"; if ( !file_exists( $backendFile ) ) { throw new RuntimeException( "Backend file '$backendFile' not found." ); } $test->backend = include $backendFile; $tokenFile = "{$testSetName}_tokens.php"; $test->server->auth->tokenAssignement = ( file_exists( $tokenFile ) ? require( $tokenFile ) : array() ); } } ?>