added unit tests
This commit is contained in:
18
tests/Support/JsonSuccessResponse.php
Normal file
18
tests/Support/JsonSuccessResponse.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Support;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
/** Thrown instead of exit() when QDB_TESTING is defined. */
|
||||
final class JsonSuccessResponse extends RuntimeException
|
||||
{
|
||||
public function __construct(
|
||||
public readonly mixed $data,
|
||||
public readonly int $httpStatus = 200,
|
||||
) {
|
||||
parent::__construct('JSON success', $httpStatus);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user