public function setUp()
 {
     parent::setUp();
     if (version_compare(phpversion(), '5.1.3', '<')) {
         $this->markTestSkipped("These tests required atleast PHP 5.1.3");
     }
 }
示例#2
0
 public function setUp()
 {
     parent::setUp();
     if (version_compare(phpversion(), '5.1.3', '<')) {
         $this->markTestSkipped("This test requires PHP 5.1.3 or later.");
     }
 }
示例#3
0
 protected function setUp()
 {
     parent::setUp();
     $this->xmlStorage = new ezcWorkflowDefinitionStorageXml(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR);
     if (!class_exists('ServiceObject', false)) {
         $this->getMock('ezcWorkflowServiceObject', array(), array(), 'ServiceObject');
     }
 }
示例#4
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');
 }
示例#5
0
 protected function setUp()
 {
     parent::setUp();
     ezcWebdavServer::getInstance()->init(new ezcWebdavBasicPathFactory('http://example.com/foo/bar'), new ezcWebdavXmlTool(), new ezcWebdavPropertyHandler(), new ezcWebdavHeaderHandler(), new ezcWebdavMockedTransport());
 }