diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-03 06:00:30 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-03 06:00:30 +0000 |
commit | 53664787d459066eaf26a3dec1df7c25eddcc912 (patch) | |
tree | 76690668919b7b0f1b293c42d745566def210138 /index.php | |
parent | f114814c03d3fa87b0d43edbe454c3ac9b93cf33 (diff) |
Add a filter to unit tests. Now you can do 'php index.php Album_Helper_Test Photo_Helper_Test' to just run those two
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -47,7 +47,7 @@ define('SYSPATH', strtr(realpath('kohana') . '/', DIRECTORY_SEPARATOR, '/')); // Force a test run if we're in command line mode. if (PHP_SAPI == 'cli') { - $_SERVER['argv'] = array($_SERVER['argv'][0], 'gallery_unit_test'); + array_splice($_SERVER['argv'], 1, 0, 'gallery_unit_test'); define('TEST_MODE', 1); @system('mkdir -p test/var/logs'); define('VARPATH', strtr(realpath('test/var') . '/', DIRECTORY_SEPARATOR, '/')); |