PackageTest::checkPackageClasses()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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