fix(test): self-register Tests\ autoload and migrations dir in bootstrap

The harness failed under a real phpunit run because nothing mapped
Tests\ -> tests/ and Commands\Migration needs migrations/ to exist.
Declare commands:migration as the actual dependency.
This commit is contained in:
kj
2026-10-05 17:36:08 -03:00
parent 0082cbe3f4
commit eb5e6eeed4
2 changed files with 31 additions and 4 deletions
+14 -4
View File
@@ -2,15 +2,25 @@
"name": "test",
"version": "0.1.0",
"description": "Kit de pruebas PHPUnit para Duckbrain",
"core": { "requires": ">=0.1", "tested": "0.1" },
"core": {
"requires": ">=0.1",
"tested": "0.1"
},
"php": ">=8.1",
"components": {
"harness": {
"files": ["phpunit.xml", "tests"],
"require": { "commands:cli": ">=0.1" }
"files": [
"phpunit.xml",
"tests"
],
"require": {
"commands:migration": ">=0.1"
}
}
},
"default": ["harness"],
"default": [
"harness"
],
"post-install": [
"composer require --dev phpunit/phpunit:^11.0 fakerphp/faker",
"composer dump-autoload"