commit | 54bfd779939b0f466e1edae1abaceb571a538286 | [log] [tgz] |
---|---|---|
author | jeroendedauw <jeroendedauw@gmail.com> | Thu Dec 19 18:59:55 2013 +0100 |
committer | jeroendedauw <jeroendedauw@gmail.com> | Thu Dec 19 18:59:55 2013 +0100 |
tree | 227d39a9856604de5f11f163815f6729177c2169 | |
parent | 4bb328eeee2007f929d7f0f9cee51eb773d26c5e [diff] |
Imrpove PHPUnit bootstrap
diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 9a46e9d..11777b7 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php
@@ -1,5 +1,12 @@ <?php -echo exec( 'composer update' ) . "\n"; +if ( php_sapi_name() !== 'cli' ) { + die( 'Not an entry point' ); +} + +$pwd = exec( 'pwd' ); +chdir( __DIR__ . '/..' ); +passthru( 'composer update' ); +chdir( $pwd ); require_once( __DIR__ . '/../vendor/autoload.php' );