diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-03-19 21:23:33 -0700 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-03-19 21:23:33 -0700 |
commit | e5ab6e0e867f58452dbdd03ee0469c48c9c841fe (patch) | |
tree | 581f5c5b52645105218cee6fa5923cd88217c8a0 /test/unit/ConfigTest.php | |
parent | af6fd06aa21cebb7ac601abfc130db137bb705e5 (diff) | |
download | php-http-client-e5ab6e0e867f58452dbdd03ee0469c48c9c841fe.zip php-http-client-e5ab6e0e867f58452dbdd03ee0469c48c9c841fe.tar.gz php-http-client-e5ab6e0e867f58452dbdd03ee0469c48c9c841fe.tar.bz2 |
Add Tests
Diffstat (limited to 'test/unit/ConfigTest.php')
-rw-r--r-- | test/unit/ConfigTest.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/unit/ConfigTest.php b/test/unit/ConfigTest.php new file mode 100644 index 0000000..569d915 --- /dev/null +++ b/test/unit/ConfigTest.php @@ -0,0 +1,24 @@ +<?php +class ConfigTest_Config extends PHPUnit_Framework_TestCase +{ + protected + $config, + $base_path, + $config_filename; + + protected function setUp() + { + $this->base_path = dirname(".."); + $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 |