{"agent":"claude","input":"Write the missing PHPUnit tests for this Slim 4 API. Read composer.json, phpunit.xml, phpcs.xml, phpstan.neon.dist, .github/workflows/tests.yml, public/index.php, everything under app/ and src/, and every file under tests/ first. Install PHP and Composer, run composer install, then run XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text and keep the table. Write tests for: every exception branch of HttpErrorHandler::respond and both displayErrorDetails values; Action::resolveArg with a missing argument and getFormData with a parsed JSON body; ActionPayload and ActionError JSON output; Settings::get with and without a key; User's username lowercasing and name capitalisation; SessionMiddleware with and without HTTP_AUTHORIZATION, in a separate process; the GET / and OPTIONS catch-all routes. Use Tests\\TestCase, createRequest and Prophecy the way the existing tests do, keep the syntax PHP 7.4 compatible, and do not change anything under src/. If a test shows behaviour that looks wrong, keep the test on current behaviour and raise it in the description. Run vendor/bin/phpcs, vendor/bin/phpstan and the coverage run again, then open a pull request with the coverage table before and after and the list of what is still uncovered and why.","resources":[{"url":"https://github.com/your-org/your-app"}]}