Passed
Push — test ( 7f1499...ccf3d3 )
by Someshwer
06:32
created

TestUtilities::testContinents()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 7
rs 10
c 1
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: babi
5
 * Date: 13/6/20
6
 * Time: 11:35 PM
7
 */
8
9
namespace Tests;
10
11
12
use Someshwer\WorldCountries\Facades\World;
13
14
class TestUtilities extends TestCase
15
{
16
17
    /** @test */
18
    public function testContinents()
19
    {
20
        // Arrange
21
        $continents = World::continents();
0 ignored issues
show
Bug introduced by
The method continents() does not exist on Someshwer\WorldCountries\Facades\World. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

21
        /** @scrutinizer ignore-call */ 
22
        $continents = World::continents();
Loading history...
22
23
        // Assert
24
        $this->assertEquals(count($continents['continents']), 7);
25
    }
26
27
    /** @test */
28
    public function testOceans()
29
    {
30
        // Arrange
31
        $oceans = World::oceans();
0 ignored issues
show
Bug introduced by
The method oceans() does not exist on Someshwer\WorldCountries\Facades\World. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

31
        /** @scrutinizer ignore-call */ 
32
        $oceans = World::oceans();
Loading history...
32
33
        // Assert
34
        $this->assertEquals(count($oceans['oceans']), 5);
35
    }
36
37
    /** @test */
38
    public function testUnionTerritories()
39
    {
40
        // Arrange
41
        $unionTerritories = World::unionTerritories();
0 ignored issues
show
Bug introduced by
The method unionTerritories() does not exist on Someshwer\WorldCountries\Facades\World. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

41
        /** @scrutinizer ignore-call */ 
42
        $unionTerritories = World::unionTerritories();
Loading history...
42
43
        // Assert
44
        $this->assertEquals(count($unionTerritories['union_territories']['india']), 7);
45
    }
46
47
    /** @test */
48
    public function testWonders()
49
    {
50
        // Arrange
51
        $wonders = World::wonders();
0 ignored issues
show
Bug introduced by
The method wonders() does not exist on Someshwer\WorldCountries\Facades\World. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

51
        /** @scrutinizer ignore-call */ 
52
        $wonders = World::wonders();
Loading history...
52
53
        // Assert
54
        $this->assertEquals(count($wonders['wonders_of_the_world']), 7);
55
    }
56
57
}