Пример #1
0
 /**
  * Helper method to setup the black and white lists
  *
  * @param string $type
  * @return void
  */
 public static function setupFileLists($type = '')
 {
     if ($type != '' && !preg_match('/\\/$/', $type)) {
         $type = $type . '/';
     }
     self::$whiteList = Utility\Files::readLists(__DIR__ . '/_files/' . $type . 'whitelist/*.txt');
     self::$blackList = Utility\Files::readLists(__DIR__ . '/_files/' . $type . 'blacklist/*.txt');
 }
Пример #2
0
 /**
  * Setup basics for all tests
  *
  * @return void
  */
 public static function setUpBeforeClass()
 {
     self::$pathToSource = BP;
     self::$reportDir = self::$pathToSource . '/dev/tests/static/report';
     if (!is_dir(self::$reportDir)) {
         mkdir(self::$reportDir);
     }
 }
Пример #3
0
 /**
  * Setup basics for all tests
  *
  * @return void
  */
 public static function setUpBeforeClass()
 {
     self::$pathToSource = Utility\Files::init()->getPathToSource();
     self::$reportDir = self::$pathToSource . '/dev/tests/static/report';
     if (!is_dir(self::$reportDir)) {
         mkdir(self::$reportDir, 0770);
     }
 }