Index: trunk/phase3/tests/phpunit/phpunit.php |
— | — | @@ -46,8 +46,8 @@ |
47 | 47 | |
48 | 48 | if( !in_array( '--configuration', $_SERVER['argv'] ) ) { |
49 | 49 | //Hack to eliminate the need to use the Makefile (which sucks ATM) |
50 | | - $_SERVER['argv'][] = '--configuration'; |
51 | | - $_SERVER['argv'][] = $IP . '/tests/phpunit/suite.xml'; |
| 50 | + array_splice( $_SERVER['argv'], 1, 0, |
| 51 | + array( '--configuration', $IP . '/tests/phpunit/suite.xml' ) ); |
52 | 52 | } |
53 | 53 | |
54 | 54 | require_once( 'PHPUnit/Runner/Version.php' ); |