diff --git a/test/TestCase.php b/test/TestCase.php index 4fe79f2..a97ce11 100644 --- a/test/TestCase.php +++ b/test/TestCase.php @@ -57,15 +57,23 @@ class TestCase extends \PHPUnit_Framework_TestCase { //public function __construct(score $score = NULL, locale $locale = NULL, adapter $adapter = NULL) { public static function setUpBeforeClass() { + global $bootstrap_settings; + + if (!isset($bootstrap_settings)) { + $bootstrap_settings = array(); + } + self::$settings = $bootstrap_settings; //$this->setTestNamespace('Tests\Units'); if (file_exists('test/settings.ini')) { - self::$settings = parse_ini_file('test/settings.ini'); + self::$settings += parse_ini_file('test/settings.ini'); } else { throw new Exception('Could not access test/settings.ini'); } + + \HPCloud\Bootstrap::useAutoloader(); \HPCloud\Bootstrap::setConfiguration(self::$settings); diff --git a/test/bootstrap_curl.php b/test/bootstrap_curl.php new file mode 100644 index 0000000..91c5bb4 --- /dev/null +++ b/test/bootstrap_curl.php @@ -0,0 +1,10 @@ + '\HPCloud\Transport\CURLTransport', +); diff --git a/test/bootstrap_phpstream.php b/test/bootstrap_phpstream.php new file mode 100644 index 0000000..564113e --- /dev/null +++ b/test/bootstrap_phpstream.php @@ -0,0 +1,10 @@ + '\HPCloud\Transport\PHPStreamTransport', +);