| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function testServiceIsCreatedWithErrors(): void |
||
| 29 | { |
||
| 30 | $request = new HttpRequest(); |
||
| 31 | $builder = new ServiceResourceBuilder($request); |
||
| 32 | |||
| 33 | $builder->addError( |
||
| 34 | $this->prophesize(Error::class)->reveal(), |
||
| 35 | $this->prophesize(Error::class)->reveal() |
||
| 36 | ); |
||
| 37 | |||
| 38 | $service = $builder->build(); |
||
| 39 | |||
| 40 | $this->assertCount(2, $service->getErrors()); |
||
| 41 | $this->assertContainsOnly(Error::class, $service->getErrors()); |
||
| 42 | } |
||
| 44 |