Author: Dan Cox
Inheritance: extends Wasp\Test\TestCase
コード例 #1
0
ファイル: ProfileTest.php プロジェクト: keyeMyria/CRM
 /**
  * Copies a test controller into the controllers directory.
  */
 public static function setUpBeforeClass()
 {
     // ensure that a directory with the same name isn't already in the web root
     exec('ls ../controllers', $output);
     if (in_array('ProfileTestController.php', $output)) {
         VERBOSE_MODE && println('Warning: tests are being aborted because file ' . '"ProfileTestController" already exists in the protected/controllers');
         self::$skipAllTests = true;
     } else {
         // copy over webscripts and perform replacement on URL tokens
         exec('cp -n webscripts/ProfileTestController.php ../controllers');
     }
     parent::setUpBeforeClass();
 }
コード例 #2
0
ファイル: ProfileTest.php プロジェクト: Syncy/HabboAPI
 public static function setUpBeforeClass()
 {
     self::$data = json_decode(file_get_contents(dirname(__FILE__) . '/../data/com_koeientemmer_getprofile.json'), true);
 }