just testing the environment
Some checks failed
Tests / test (push) Has been cancelled

This commit is contained in:
tom.hempel
2026-05-20 07:10:08 +02:00
parent 2a11dfd0d1
commit 06fc134299
56 changed files with 1890 additions and 361 deletions

14
lib/QdbHttpResponse.php Normal file
View File

@ -0,0 +1,14 @@
<?php
/**
* Thrown instead of exit() when QDB_TESTING is enabled (PHPUnit integration tests).
*/
final class QdbHttpResponse extends Exception
{
public function __construct(
public readonly array $body,
public readonly int $status,
) {
parent::__construct(json_encode($body, JSON_THROW_ON_ERROR), $status);
}
}