Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
56 | public function assertContainsAtLeastOneFailedAndThrowException() |
||
57 | { |
||
58 | $allowed = ['anything', 'something']; |
||
59 | $json = [ |
||
60 | 'unexpected' => 'bad' |
||
61 | ]; |
||
62 | |||
63 | $constraint = new ContainsAtLeastOneConstraint($allowed); |
||
64 | |||
65 | $this->setFailure(sprintf( |
||
66 | '/Failed asserting that [\S\s]* %s\./', |
||
67 | $constraint->toString() |
||
68 | )); |
||
69 | |||
70 | $constraint->evaluate($json); |
||
71 | } |
||
73 |