public function setUp() { parent::setUp(); if (version_compare(phpversion(), '5.1.3', '<')) { $this->markTestSkipped("These tests required atleast PHP 5.1.3"); } }
public function setUp() { parent::setUp(); if (version_compare(phpversion(), '5.1.3', '<')) { $this->markTestSkipped("This test requires PHP 5.1.3 or later."); } }
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'); } }
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'); }
protected function setUp() { parent::setUp(); ezcWebdavServer::getInstance()->init(new ezcWebdavBasicPathFactory('http://example.com/foo/bar'), new ezcWebdavXmlTool(), new ezcWebdavPropertyHandler(), new ezcWebdavHeaderHandler(), new ezcWebdavMockedTransport()); }