Completed
Push — master ( 90ad1a...d4b41d )
by Bryan
10:33
created

WeatherTest::testToString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 9.4285
nc 1
cc 1
eloc 3
nop 0
1
<?php
2
namespace Bhhaskin\WeatherBee\Test\Util;
3
4
use PHPUnit\Framework\TestCase;
5
use Bhhaskin\WeatherBee\Util\Weather;
6
7
/**
8
* @coversDefaultClass Bhhaskin\WeatherBee\Util\Weather
9
*/
10
class WeatherTest extends TestCase
11
{
12
    /**
13
    * @covers ::__construct
14
    */
15
    public function testWeatherCreation()
16
    {
17
        $this->assertInstanceOf(Weather::class, new Weather("foo"));
18
    }
19
20
    /**
21
    * @covers ::__toString
22
    */
23
    public function testToString()
24
    {
25
        $weather = new Weather('foo');
26
        $this->assertEquals($weather, "foo");
27
    }
28
}
29