/** * 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(); }