FieldSpec   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

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