PackageTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 4
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A it_gets_details_for_an_package_by_id() 0 11 1
A checkPackageClasses() 0 4 1
1
<?php
2
3
require_once('BaseTester.php');
4
5
/** @group Package */
6
class PackageTest extends BaseTester
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: artisan, be, call, seed
Loading history...
7
{
8
    /** @test */
9
    public function it_gets_details_for_an_package_by_id()
10
    {
11
        $details = $this->steamClient->package()->packageDetails($this->packageId);
12
13
        $this->assertCount(1, $details);
14
15
        $detail = $details->first();
16
17
        $this->checkPackageProperties($detail);
18
        $this->checkPackageClasses($detail);
19
    }
20
21
    /**
22
     * @param $detail
23
     */
24
    private function checkPackageClasses($detail)
25
    {
26
        $this->assertInstanceOf('Syntax\SteamApi\Containers\Package', $detail);
27
    }
28
}
29