Test Setup Failed
Push — master ( 6cbb71...97a7ce )
by Anton
01:51
created

ExampleWeatherTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetWeather() 0 7 1
1
<?php
2
3
namespace EVB\Weather;
4
5
use Anax\DI\DIFactoryConfig;
0 ignored issues
show
Bug introduced by
The type Anax\DI\DIFactoryConfig was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * Test ExampleWeather for Weather.
10
 */
11
class ExampleWeatherTest extends TestCase
12
{
13
    /**
14
     * Test getWeather() method.
15
     */
16
    public function testGetWeather()
17
    {
18
        $data = "hurr durr";
19
20
        $sut = new ExampleWeather($data);
21
22
        $this->assertEquals($data, $sut->getWeather("does not", "matter"));
23
    }
24
}
25