Skip to content

Commit 0b3cfa5

Browse files
committed
composer require phpunit/phpunit --dev -W
1 parent 30e74da commit 0b3cfa5

File tree

8 files changed

+2471
-78
lines changed

8 files changed

+2471
-78
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ app/cache/
77
.DS_Store
88
*.sublime-*
99
biome.*
10+
.phpunit.result.cache

app/config/routes.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
/** @var CustomEngine $app */
1111
/** @var Router $router */
1212

13+
Flight::route('GET /api/status', static fn() => Flight::json(['status' => 'ok']));
14+
1315
// This acts like a global middleware
1416
$router->group('', function (Router $router) use ($app) {
1517

composer.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,28 @@
3939
"composer check-platform-reqs"
4040
],
4141
"start": "[ -x \"$(command -v php8.2)\" ] && php8.2 -S localhost:8000 -t public || php -S localhost:8000 -t public",
42-
"rector": "rector"
42+
"ci": [
43+
"composer check-platform-reqs --no-ansi",
44+
"phpunit --colors=never --no-progress",
45+
"phpstan --no-progress --no-ansi",
46+
"rector --dry-run --no-progress-bar --no-ansi"
47+
],
48+
"serve": [
49+
"Composer\\Config::disableProcessTimeout",
50+
"php -S 0.0.0.0:61001 -t public"
51+
]
4352
},
4453
"require-dev": {
4554
"flightphp/tracy-extensions": "^0.2.3",
55+
"guzzlehttp/guzzle": "^7.9",
4656
"phpstan/extension-installer": "^1.4",
4757
"phpstan/phpstan": "^2.1",
58+
"phpunit/phpunit": "^11.5",
4859
"rector/rector": "^2.0"
60+
},
61+
"autoload-dev": {
62+
"psr-4": {
63+
"Tests\\": "tests"
64+
}
4965
}
5066
}

0 commit comments

Comments
 (0)