diff --git a/composer.json b/composer.json index fc43380..83de993 100644 --- a/composer.json +++ b/composer.json @@ -23,10 +23,7 @@ "twig/twig": "^3.22" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^1.0", - "phpstan/phpstan": "^2.1", - "phpunit/phpunit": "^11.5", - "sympress/coding-standards": "dev-main" + "sympress/qa": "dev-main" }, "autoload": { "psr-4": { @@ -47,22 +44,22 @@ "scripts": { "cs": [ "Composer\\Config::disableProcessTimeout", - "phpcs --standard=phpcs.xml.dist" + "qa cs" ], "cs:fix": [ "Composer\\Config::disableProcessTimeout", - "phpcbf --standard=phpcs.xml.dist" + "qa cs:fix" ], "static-analysis": [ "Composer\\Config::disableProcessTimeout", - "phpstan analyse --memory-limit=1G --no-progress -c phpstan.neon.dist" - ], - "test": [ - "@tests" + "qa static-analysis" ], "tests": [ "Composer\\Config::disableProcessTimeout", - "phpunit --configuration phpunit.xml.dist --no-coverage" + "qa tests" + ], + "test": [ + "@tests" ], "qa": [ "@cs", @@ -74,7 +71,8 @@ "sort-packages": true, "optimize-autoloader": true, "allow-plugins": { - "dealerdirect/phpcodesniffer-composer-installer": true + "dealerdirect/phpcodesniffer-composer-installer": true, + "phpstan/extension-installer": true } }, "repositories": [ diff --git a/tests/Unit/TwigResponseTraitTest.php b/tests/Unit/TwigResponseTraitTest.php index b3becd0..d703c75 100644 --- a/tests/Unit/TwigResponseTraitTest.php +++ b/tests/Unit/TwigResponseTraitTest.php @@ -40,7 +40,7 @@ public function load(string $template): TemplateWrapper $response = $controller->renderTemplate('page.html.twig', ['title' => 'Hello']); - self::assertInstanceOf(Response::class, $response); + self::assertSame(Response::HTTP_OK, $response->getStatusCode()); self::assertSame('page.html.twig:Hello', $response->getContent()); }