/** * 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(); }
public static function setUpBeforeClass() { self::$data = json_decode(file_get_contents(dirname(__FILE__) . '/../data/com_koeientemmer_getprofile.json'), true); }