We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d7cb3 commit e535782Copy full SHA for e535782
tests/WeatherbitTests.php renamed to tests/WeatherbitTest.php
@@ -7,7 +7,7 @@
7
use PHPUnit\Framework\TestCase;
8
use Attogram\Filesystem\Cache;
9
10
-final class WeatherbitTests extends TestCase
+final class WeatherbitTest extends TestCase
11
{
12
/**
13
* @var Attogram\Weatherbit\Weatherbit
@@ -26,4 +26,18 @@ public function testClass()
26
$this->setWeatherbit();
27
$this->assertInstanceOf(Weatherbit::class, $this->weatherbit);
28
}
29
+
30
+ public function testSetKeyEmpty()
31
+ {
32
+ $this->setWeatherbit();
33
+ $this->expectException(Exception::class);
34
+ $this->weatherbit->setKey('');
35
+ }
36
37
+ public function testSetKeyNotString()
38
39
40
41
+ $this->weatherbit->setKey([]]);
42
43
0 commit comments