GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

TrackingIdTest::it_constructs_itself_from_string()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/*
3
 * This file is part of the prooph/php-ddd-cargo-sample package.
4
 * (c) Alexander Miertsch <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
namespace CodelinerTest\CargoBackend\Domain\Model\Cargo;
10
11
use Codeliner\CargoBackend\Model\Cargo\TrackingId;
12
use CodelinerTest\CargoBackend\TestCase;
13
use Ramsey\Uuid\Uuid;
14
15
/**
16
 * TrackingIdTest
17
 * 
18
 * @author Alexander Miertsch <[email protected]>
19
 */
20
class TrackingIdTest extends TestCase
21
{
22
    /**
23
     * @test
24
     */
25
    public function it_constructs_itself_from_string()
26
    {
27
        $uuid = Uuid::uuid4();
28
29
        $trackingId = TrackingId::fromString($uuid->toString());
30
31
        $this->assertEquals($uuid->toString(), $trackingId->toString());
32
    }
33
    /**
34
     * @test
35
     */
36
    public function it_returns_string_representation_of_uuid()
37
    {
38
        $uuid = Uuid::uuid4();
39
40
        $trackingId = new TrackingId($uuid);
41
42
        $this->assertEquals($uuid->toString(), $trackingId->toString());
43
    }
44
45
    /**
46
     * @test
47
     */
48
    public function it_is_same_value_as()
49
    {
50
        $uuid = Uuid::uuid4();
51
52
        $trackingId = new TrackingId($uuid);
53
54
        $sameTrackingId = new TrackingId($uuid);
55
56
        $this->assertTrue($trackingId->sameValueAs($sameTrackingId));
57
    }
58
59
    /**
60
     * @test
61
     */
62
    public function it_is_not_same_value_as()
63
    {
64
        $trackingId = new TrackingId(Uuid::uuid4());
65
        $otherTrackingId = new TrackingId(Uuid::uuid4());
66
67
        $this->assertFalse($trackingId->sameValueAs($otherTrackingId));
68
    }
69
}
70