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

SubStatementSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 5
dl 0
loc 15
ccs 0
cts 11
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A let() 0 7 1
A it_is_an_xapi_object() 0 4 1
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