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

WeatherTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 19
c 1
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testWeatherCreation() 0 4 1
A testToString() 0 5 1
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