Completed
Push — master ( 2bedd9...b42c0c )
by Christian
02:23
created

StatementReferenceSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 3
dl 0
loc 17
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the xAPI package.
5
 *
6
 * (c) Christian Flothmann <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace spec\Xabbuh\XApi\Model;
13
14
use PhpSpec\ObjectBehavior;
15
use Xabbuh\XApi\Model\StatementId;
16
use Xabbuh\XApi\Model\StatementReference;
17
18
class StatementReferenceSpec extends ObjectBehavior
19
{
20
    function it_is_an_xapi_object()
21
    {
22
        $this->beConstructedWith(StatementId::fromString('16fd2706-8baf-433b-82eb-8c7fada847da'));
23
        $this->shouldHaveType('Xabbuh\XApi\Model\Object');
24
    }
25
26
    function it_is_equal_to_another_reference_with_the_same_statement_id()
27
    {
28
        $this->beConstructedWith(StatementId::fromString('16fd2706-8baf-433b-82eb-8c7fada847da'));
29
30
        $statementReference = new StatementReference(StatementId::fromString('16fd2706-8baf-433b-82eb-8c7fada847da'));
31
32
        $this->equals($statementReference)->shouldReturn(true);
33
    }
34
}
35