| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function it_collects_errors_until_assertall() |
||
|
|
|||
| 11 | { |
||
| 12 | $this->setExpectedException('Assert\LazyAssertionException', <<<EXC |
||
| 13 | The following 3 assertions failed: |
||
| 14 | 1) foo: Value "10" expected to be string, type integer given. |
||
| 15 | 2) bar: Value "<NULL>" is empty, but non empty value was expected. |
||
| 16 | 3) baz: Value "string" is not an array. |
||
| 17 | EXC |
||
| 18 | ); |
||
| 19 | |||
| 20 | \Assert\lazy() |
||
| 21 | ->that(10, 'foo')->string() |
||
| 22 | ->that(null, 'bar')->notEmpty() |
||
| 23 | ->that('string', 'baz')->isArray() |
||
| 24 | ->verifyNow(); |
||
| 25 | } |
||
| 26 | |||
| 43 |