Test Failed
Push — master ( 06fcec...ff7c45 )
by Martin
07:58
created

it_is_satisfied()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace spec\Todo\Domain\Specification;
4
5
use Todo\Domain\Specification\TaskNameIsNotEmptySpecification;
6
use PhpSpec\ObjectBehavior;
7
use Prophecy\Argument;
8
9
class TaskNameIsNotEmptySpecificationSpec extends ObjectBehavior
10
{
11
    protected $valid = 'Buying pc';
12
    protected $invalid = '';
13
14
    function it_is_initializable()
15
    {
16
        $this->shouldHaveType(TaskNameIsNotEmptySpecification::class);
17
    }
18
19
    function it_is_satisfied()
20
    {
21
        $this->isSatisfiedBy($this->valid)->shouldBe(true);
22
        $this->isSatisfiedBy($this->invalid)->shouldBe(false);
23
    }
24
}
25