Author: Dan Cox
Inheritance: extends Wasp\Test\TestCase
Ejemplo n.º 1
0
 /**
  * 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();
 }
Ejemplo n.º 2
0
 public static function setUpBeforeClass()
 {
     self::$data = json_decode(file_get_contents(dirname(__FILE__) . '/../data/com_koeientemmer_getprofile.json'), true);
 }