src/Tests/Response/ErrorResponseFactory/SimpleErrorResponseFactoryTest.php 1 location
|
@@ 80-88 (lines=9) @@
|
| 77 |
|
/** |
| 78 |
|
* @test |
| 79 |
|
*/ |
| 80 |
|
public function willSetResponseWithLogRef() |
| 81 |
|
{ |
| 82 |
|
foreach ([400, 500] as $code) { |
| 83 |
|
$response = $this->factory->create( |
| 84 |
|
new HttpError(new Request(), new Exception('Ai caramba!', $code), $this->logRefBuilder) |
| 85 |
|
); |
| 86 |
|
$this->assertSame(self::LOGREF, json_decode($response->getContent())->logref); |
| 87 |
|
} |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
/** |
| 91 |
|
* @test |
src/Tests/Response/ErrorResponseFactory/VndErrorResponseFactoryTest.php 1 location
|
@@ 94-102 (lines=9) @@
|
| 91 |
|
/** |
| 92 |
|
* @test |
| 93 |
|
*/ |
| 94 |
|
public function willSetResponseWithLogRef() |
| 95 |
|
{ |
| 96 |
|
foreach ([400, 500] as $code) { |
| 97 |
|
$response = $this->factory->create( |
| 98 |
|
new HttpError(new Request(), new Exception('Ai caramba!', $code), $this->logRefBuilder) |
| 99 |
|
); |
| 100 |
|
$this->assertSame(self::LOGREF, json_decode($response->getContent())->logref); |
| 101 |
|
} |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
/** |
| 105 |
|
* @test |