1 | <?php |
||
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 |