| @@ 15-22 (lines=8) @@ | ||
| 12 | { |
|
| 13 | const TEST_FOLDER = 'tests'; |
|
| 14 | ||
| 15 | public static function install($app = 'application') |
|
| 16 | { |
|
| 17 | self::recursiveCopy( |
|
| 18 | dirname(__FILE__) . '/application/tests', |
|
| 19 | $app . '/' . static::TEST_FOLDER |
|
| 20 | ); |
|
| 21 | self::fixPath($app); |
|
| 22 | } |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Fix paths in Bootstrap.php |
|
| @@ 86-94 (lines=9) @@ | ||
| 83 | file_put_contents($file, $contents); |
|
| 84 | } |
|
| 85 | ||
| 86 | public static function update($app = 'application') |
|
| 87 | { |
|
| 88 | $target_dir = $app . '/' . static::TEST_FOLDER . '/_ci_phpunit_test'; |
|
| 89 | self::recursiveUnlink($target_dir); |
|
| 90 | self::recursiveCopy( |
|
| 91 | dirname(__FILE__) . '/application/tests/_ci_phpunit_test', |
|
| 92 | $target_dir |
|
| 93 | ); |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * Recursive Copy |
|