Пример #1
0
 protected function setUp()
 {
     parent::setUp();
     ezcWebdavServer::getInstance()->init(new ezcWebdavBasicPathFactory('http://example.com/foo/bar'), new ezcWebdavXmlTool(), new ezcWebdavPropertyHandler(), new ezcWebdavHeaderHandler(), new ezcWebdavMockedTransport());
 }
Пример #2
0
 public function setUp()
 {
     parent::setUp();
     static $i = 0;
     $this->tempDir = $this->createTempDir(__CLASS__ . sprintf('_%03d', ++$i)) . '/';
     self::copyRecursive(dirname(__FILE__) . '/data/backend_file', $this->tempDir . 'backend/');
     // Remove SVN directories from temporary backend
     $svnDirs = ezcFile::findRecursive($this->tempDir . 'backend/', array('(/\\.svn/entries$)'));
     foreach ($svnDirs as $dir) {
         ezcFile::removeRecursive(dirname($dir));
     }
     // Explicitely set mtime and ctime
     $this->recursiveTouch($this->tempDir . 'backend/', 2147483647);
     // Store current timezone and switch to UTC for test
     $this->oldTimezone = date_default_timezone_get();
     date_default_timezone_set('UTC');
 }