Completed
Push — master ( 1f27f3...7c792b )
by Bryan
01:24
created

ConvertTest::testCelsiusValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Bhhaskin\WeatherBee\Tests;
3
4
use PHPUnit\Framework\TestCase;
5
use Bhhaskin\WeatherBee\Util\{Convert};
6
7
/**
8
 * @coversDefaultClass Bhhaskin\WeatherBee\Util\Convert
9
 */
10
class ConvertTest extends TestCase
11
{
12
    /**
13
     * @covers ::toFahrenheit
14
     */
15
    public function testFahrenheitValue()
16
    {
17
        $this->assertEquals(Convert::toFahrenheit(0), 32);
18
    }
19
20
    /**
21
     * @covers ::toCelsius
22
     */
23
    public function testCelsiusValue()
24
    {
25
        $this->assertEquals(Convert::toCelsius(32), 0);
26
    }
27
}
28