blob: 3d8ff7c34560c61c252699de3ea29a43c84826ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
class ConfigTest_Config extends PHPUnit_Framework_TestCase
{
protected
$config,
$base_path,
$config_filename;
protected function setUp()
{
$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>");
}
}
?>
|