From ef5f76d3524c991c526728e1dc4c649b317aed53 Mon Sep 17 00:00:00 2001 From: Robert Hafner Date: Thu, 27 Feb 2014 00:11:19 -0800 Subject: [PATCH] Added timezone and corrected path data Adding a timezone prevents errors on misconfigured systems when running, and the path correction automates the running of the dovecot testing package between tests. --- tests/bootstrap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 0f5786f..0c7604f 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -14,6 +14,7 @@ error_reporting(-1); define('TESTING', true); define('TEST_USER', 'testuser'); define('TEST_PASSWORD', 'applesauce'); +date_default_timezone_set('UTC'); if(getenv('TRAVIS')) { @@ -23,7 +24,7 @@ if(getenv('TRAVIS')) define('TESTING_ENVIRONMENT', 'VAGRANT'); define('TESTING_SERVER_HOST', '172.31.1.2'); echo 'Initializing Environment using Vagrant' . PHP_EOL; - passthru('/bin/bash ' . __DIR__ . '/vendor/tedivm/dovecottesting/SetupEnvironment.sh'); + passthru('/bin/bash ' . __DIR__ . '/../vendor/tedivm/dovecottesting/SetupEnvironment.sh'); echo 'Environment Initialized' . PHP_EOL . PHP_EOL . PHP_EOL; }