Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function handle(OutcomeInterface $outcome): StatusInterface |
||
25 | { |
||
26 | if ($outcome->isOutput()) { |
||
27 | return new Failure($outcome, "Failed asserting nothing, found output: {$outcome->getContent()}"); |
||
28 | } |
||
29 | |||
30 | if ($outcome->isError()) { |
||
31 | return new Failure($outcome, "Failed asserting nothing, found error: {$outcome->getContent()}"); |
||
32 | } |
||
33 | |||
34 | return new Success($outcome, 'Asserted that no output and no error is produced'); |
||
35 | } |
||
37 |