Completed
Branch master (3247f7)
by Christian
02:24
created

SubStatementSpec::it_is_an_xapi_object()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
3
namespace spec\Xabbuh\XApi\Model;
4
5
use PhpSpec\ObjectBehavior;
6
use Xabbuh\XApi\Model\Activity;
7
use Xabbuh\XApi\Model\Agent;
8
use Xabbuh\XApi\Model\InverseFunctionalIdentifier;
9
use Xabbuh\XApi\Model\Verb;
10
11
class SubStatementSpec extends ObjectBehavior
12
{
13
    function it_is_an_xapi_object()
14
    {
15
        $actor = new Agent(InverseFunctionalIdentifier::withMbox('mailto:[email protected]'));
16
        $verb = new Verb('http://tincanapi.com/conformancetest/verbid', array('en-US' => 'test'));
17
        $object = new Activity('http://tincanapi.com/conformancetest/activityid');
18
        $this->beConstructedWith('16fd2706-8baf-433b-82eb-8c7fada847da', $actor, $verb, $object);
19
20
        $this->shouldHaveType('Xabbuh\XApi\Model\Object');
21
    }
22
}
23