| @@ 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 |
|
| @@ 72-80 (lines=9) @@ | ||
| 69 | file_put_contents($file, $contents); |
|
| 70 | } |
|
| 71 | ||
| 72 | public static function update($app = 'application') |
|
| 73 | { |
|
| 74 | $target_dir = $app . '/' . static::TEST_FOLDER . '/_ci_phpunit_test'; |
|
| 75 | self::recursiveUnlink($target_dir); |
|
| 76 | self::recursiveCopy( |
|
| 77 | dirname(__FILE__) . '/application/tests/_ci_phpunit_test', |
|
| 78 | $target_dir |
|
| 79 | ); |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * Recursive Copy |
|