tests/Exceptions/OpenWeatherMapExceptionTest.php 1 location
|
@@ 28-34 (lines=7) @@
|
25 |
|
protected $apiKey; |
26 |
|
protected $weather; |
27 |
|
|
28 |
|
protected function setUp() |
29 |
|
{ |
30 |
|
$ini = parse_ini_file(__DIR__ . '/../ApiKey.ini'); |
31 |
|
$apiKey = $ini['api_key']; |
32 |
|
$this->apiKey = $apiKey; |
33 |
|
$this->weather = new OpenWeatherMap($this->apiKey, null, false, 600); |
34 |
|
} |
35 |
|
|
36 |
|
/** |
37 |
|
* @expectedException Exception |
tests/OpenWeatherMapTest.php 1 location
|
@@ 32-39 (lines=8) @@
|
29 |
|
protected $weather; |
30 |
|
protected $cache; |
31 |
|
|
32 |
|
protected function setUp() |
33 |
|
{ |
34 |
|
$ini = parse_ini_file(__DIR__ . '/ApiKey.ini'); |
35 |
|
$apiKey = $ini['api_key']; |
36 |
|
$this->apiKey = $apiKey; |
37 |
|
$this->weather = new OpenWeatherMap($this->apiKey, null, false, 600); |
38 |
|
$this->cache = new ExampleCacheTest(); |
39 |
|
} |
40 |
|
|
41 |
|
protected function tearDown() |
42 |
|
{ |