From 554c22a363004bdebf48d42c8382ba1548ed321b Mon Sep 17 00:00:00 2001 From: Robert Hafner Date: Thu, 5 Dec 2013 13:50:36 -0800 Subject: [PATCH] Added some useful output to the phpunit bootstrap file --- tests/bootstrap.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 53f9d61..48d3be4 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -18,11 +18,13 @@ define('TEST_PASSWORD', 'applesauce'); if(getenv('TRAVIS')) { define('TESTING_ENVIRONMENT', 'TRAVIS'); - define('TESTING_SERVER_IP', '127.0.0.1'); + define('TESTING_SERVER_HOST', '127.0.0.1'); }else{ define('TESTING_ENVIRONMENT', 'VAGRANT'); - define('TESTING_SERVER_IP', '172.31.1.2'); - exec('/bin/bash ' . __DIR__ . '/SetupEnvironment.sh'); + define('TESTING_SERVER_HOST', '172.31.1.2'); + echo 'Initializing Environment using Vagrant' . PHP_EOL; + passthru('/bin/bash ' . __DIR__ . '/SetupEnvironment.sh'); + echo 'Environment Initialized' . PHP_EOL . PHP_EOL . PHP_EOL; } $filename = __DIR__ .'/../vendor/autoload.php';