Total Complexity | 7 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | |||
13 | class ErrorOutcomeSpec extends ObjectBehavior |
||
14 | { |
||
15 | function let(ExampleObj $example) |
||
16 | { |
||
17 | $this->beConstructedWith($example, 'foobar'); |
||
18 | } |
||
19 | |||
20 | function it_is_initializable() |
||
21 | { |
||
22 | $this->shouldHaveType(ErrorOutcome::class); |
||
23 | } |
||
24 | |||
25 | function it_is_an_outcome() |
||
26 | { |
||
27 | $this->shouldHaveType(OutcomeInterface::class); |
||
28 | } |
||
29 | |||
30 | function it_contains_example($example) |
||
31 | { |
||
32 | $this->getExample()->shouldReturn($example); |
||
33 | } |
||
34 | |||
35 | function it_knows_its_type() |
||
36 | { |
||
37 | $this->shouldBeError(); |
||
38 | $this->shouldNotBeOutput(); |
||
39 | $this->shouldNotBeSkipped(); |
||
40 | $this->shouldNotBeVoid(); |
||
41 | } |
||
42 | |||
43 | function it_must_be_handled() |
||
44 | { |
||
45 | $this->mustBeHandled()->shouldReturn(true); |
||
46 | } |
||
47 | |||
53 |