示例#1
0
 public function __construct($id, ezcwebdavClientTestSetup $setup, array $testData)
 {
     parent::__construct(sprintf('%s %s', $id, $testData['request']['server']['REQUEST_METHOD']));
     $this->id = $id;
     $this->testData = $testData;
     $this->setup = $setup;
 }
示例#2
0
文件: log_test.php 项目: bmdevel/ezc
 public function __construct($string = "")
 {
     parent::__construct($string);
     // These instances yield for all these tests.
     // $this->log = ezcLog::getInstance();
     date_default_timezone_set("UTC");
 }
 public function __construct()
 {
     if (self::SORT_MODE === 'mtime') {
         // Sort by modification time to get updated tests first
         usort($this->files, array($this, 'sortTestsByMtime'));
     } else {
         // Sort it, then the file a.in will be processed first. Handy for development.
         usort($this->files, array($this, 'sortTestsByName'));
     }
     parent::__construct();
 }
示例#4
0
 public function __construct()
 {
     parent::__construct();
     // Initialize directory to store backend dumps in
     if (self::STORE_BACKEND && self::$backendDir === null) {
         self::$backendDir = $this->createTempDir('WebdavBackendDump');
     }
     $this->setupTestEnvironment();
     // Reset the backend at start of the suite
     foreach (glob($this->dataDir . '/*request_server.php') as $testSetFile) {
         $this->testSets[] = substr($testSetFile, 0, -19);
     }
 }
示例#5
0
 public function __construct()
 {
     parent::__construct();
     $this->regressionDir = dirname(__FILE__) . "/regression_tests";
     $directories = array();
     $this->readDirRecursively($this->regressionDir, $directories, "in");
     if (isset($_ENV['EZC_TEST_TEMPLATE_SORT']) && $_ENV['EZC_TEST_TEMPLATE_SORT'] == 'mtime') {
         // Sort by modification time to get updated tests first
         usort($directories, array($this, 'sortTestsByMtime'));
     } else {
         // Sort it, then the file a.in will be processed first. Handy for development.
         usort($directories, array($this, 'sortTestsByName'));
     }
     $this->directories = $directories;
     // Check for environment variables which turns on special features
     if (isset($_ENV['EZC_TEST_INTERACTIVE'])) {
         $this->interactiveMode = (bool) $_ENV['EZC_TEST_INTERACTIVE'];
     }
 }