Conditions | 6 |
Paths | 8 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | public function testExample(Example $example): void |
||
44 | { |
||
45 | if (!$example->shouldBeEvaluated()) { |
||
46 | foreach ($this->listeners as $listener) { |
||
47 | $listener->onIgnoredExample($example); |
||
48 | } |
||
49 | return; |
||
50 | } |
||
51 | |||
52 | foreach ($this->listeners as $listener) { |
||
53 | $listener->onExample($example); |
||
54 | } |
||
55 | |||
56 | $outcomes = $this->runner->run($example->getCodeBlock()); |
||
57 | |||
58 | foreach ($this->evaluator->evaluate($example->getExpectations(), $outcomes) as $status) { |
||
59 | foreach ($this->listeners as $listener) { |
||
60 | $listener->onExpectation($status); |
||
61 | } |
||
65 |