FieldSpec::it_matches_critera()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace spec\TomPHP\HalClient\Resource;
4
5
use PhpSpec\ObjectBehavior;
6
7
class FieldSpec extends ObjectBehavior
8
{
9
    function it_matches_critera()
10
    {
11
        $this->beConstructedWith('test-value');
12
13
        $this->matches('test-value')->shouldReturn(true);
14
        $this->matches('different-value')->shouldReturn(false);
15
    }
16
}
17