Completed
Pull Request — master (#3)
by Christian
03:02
created

SubStatementSpec::it_is_an_xapi_object()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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 let()
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
21
    function it_is_an_xapi_object()
22
    {
23
        $this->shouldHaveType('Xabbuh\XApi\Model\Object');
24
    }
25
}
26