refactor/update #30

Merged
TorstenHettstedt merged 15 commits from refactor/update into master 2025-06-16 15:48:34 +02:00
4 changed files with 5 additions and 7 deletions
Showing only changes of commit b094cf8180 - Show all commits
@@ -8,13 +8,8 @@ class HttpConflictRequestException extends HttpSpecializedException
{ {
/** @var int */ /** @var int */
protected $code = 409; protected $code = 409;
/** @var string */ /** @var string */
protected $message = 'Conflict.'; protected $message = 'Conflict.';
protected string $title = '409 Conflict';
/** @var string */ protected string $description = 'The 409 (Conflict) status code indicates that the request could not be completed due to a conflict with the current state of the target resource.';
protected $title = '409 Conflict';
/** @var string */
protected $description = 'The 409 (Conflict) status code indicates that the request could not be completed due to a conflict with the current state of the target resource.';
} }
@@ -51,6 +51,7 @@ class WorkingHoursControllerTest extends Unit
'write' => function (mixed $data) { 'write' => function (mixed $data) {
$this->assertIsString($data); $this->assertIsString($data);
$this->assertJson($data); $this->assertJson($data);
return strlen($data);
}, },
]), ]),
'withHeader' => $this->makeEmpty(Response::class, [ 'withHeader' => $this->makeEmpty(Response::class, [
@@ -35,6 +35,7 @@ class WorkingHoursViewControllerTest extends Unit
'write' => function (mixed $data) { 'write' => function (mixed $data) {
$this->assertIsString($data); $this->assertIsString($data);
$this->assertJson($data); $this->assertJson($data);
return strlen($data);
}, },
]), ]),
'withHeader' => $this->makeEmpty(Response::class, [ 'withHeader' => $this->makeEmpty(Response::class, [
@@ -38,6 +38,7 @@ class ErrorHandlerTest extends Unit
'write' => function (mixed $data) { 'write' => function (mixed $data) {
$this->assertIsString($data); $this->assertIsString($data);
$this->assertJson($data); $this->assertJson($data);
return strlen($data);
}, },
]), ]),
]), ]),