diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-06-06 19:02:46 -0700 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-06-06 19:02:46 -0700 |
commit | b808300d9b9e79234565be52a8cce5bdc458f8ea (patch) | |
tree | 2d667baa7f09305da914ffdfbd6359ab020079a9 /test | |
parent | 988698f5b2f114d0a62472b1012edac20e37eca1 (diff) | |
download | php-http-client-b808300d9b9e79234565be52a8cce5bdc458f8ea.zip php-http-client-b808300d9b9e79234565be52a8cce5bdc458f8ea.tar.gz php-http-client-b808300d9b9e79234565be52a8cce5bdc458f8ea.tar.bz2 |
Version Bump v3.0.0: Made the Request and Response variables non-redundant. e.g. request.requestBody becomes request.bodyv3.0.0
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/ConfigTest.php | 28 | ||||
-rw-r--r-- | test/unit/bootstrap.php | 1 |
2 files changed, 0 insertions, 29 deletions
diff --git a/test/unit/ConfigTest.php b/test/unit/ConfigTest.php deleted file mode 100644 index 3ad84f2..0000000 --- a/test/unit/ConfigTest.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php -class ConfigTest_Config extends PHPUnit_Framework_TestCase -{ - protected - $config, - $base_path, - $config_filename; - - protected function setUp() - { - if(getenv('TRAVIS')) { - $this->base_path = '/home/travis/build/sendgrid/php-http-client/'; - } else { - $this->base_path = basename(__DIR__).'../..'; - } - $this->config_filename = '.env_sample'; - $this->config = new SendGrid\Config($this->base_path, $this->config_filename); - } - - public function testInitialization() - { - $this->assertEquals($api_key = getenv('SENDGRID_API_KEY'), "<your_sendgrid_api_key>"); - $this->assertEquals($api_key = getenv('HOST'), "<base_url_for_live_api_host>"); - $this->assertEquals($api_key = getenv('MOCK_HOST'), "<base_url_for_remote_mocked_api_host>"); - $this->assertEquals($api_key = getenv('LOCAL_HOST'), "<base_url_for_local_mocked_api_host>"); - } -} -?>
\ No newline at end of file diff --git a/test/unit/bootstrap.php b/test/unit/bootstrap.php index e0da9a5..71a1608 100644 --- a/test/unit/bootstrap.php +++ b/test/unit/bootstrap.php @@ -1,6 +1,5 @@ <?php include(dirname(dirname(__FILE__)) . '/../lib/SendGrid/client.php'); -include(dirname(dirname(__FILE__)) . '/../lib/SendGrid/config.php'); require __DIR__ . '/../../vendor/autoload.php'; function autoload_tests($class) { |