chore: updates snapshots

This commit is contained in:
nuno maduro
2026-04-10 12:35:32 +01:00
parent 617b074049
commit a8e974d64a
4 changed files with 13 additions and 10 deletions

View File

@ -61,8 +61,5 @@ jobs:
- name: Type Coverage - name: Type Coverage
run: composer test:type:coverage run: composer test:type:coverage
- name: Refacto
run: composer test:refacto
- name: Style - name: Style
run: composer test:lint run: composer test:lint

View File

@ -73,10 +73,14 @@
"bin/pest" "bin/pest"
], ],
"scripts": { "scripts": {
"refacto": "rector", "lint": [
"lint": "pint --parallel", "rector",
"test:refacto": "rector --dry-run", "pint --parallel"
"test:lint": "pint --parallel --test", ],
"test:lint": [
"rector --dry-run",
"pint --parallel --test"
],
"test:profanity": "php bin/pest --profanity --compact", "test:profanity": "php bin/pest --profanity --compact",
"test:type:check": "phpstan analyse --ansi --memory-limit=-1 --debug", "test:type:check": "phpstan analyse --ansi --memory-limit=-1 --debug",
"test:type:coverage": "php -d memory_limit=-1 bin/pest --type-coverage --min=100", "test:type:coverage": "php -d memory_limit=-1 bin/pest --type-coverage --min=100",
@ -86,7 +90,6 @@
"test:integration": "php bin/pest --group=integration -v", "test:integration": "php bin/pest --group=integration -v",
"update:snapshots": "REBUILD_SNAPSHOTS=true php bin/pest --update-snapshots", "update:snapshots": "REBUILD_SNAPSHOTS=true php bin/pest --update-snapshots",
"test": [ "test": [
"@test:refacto",
"@test:lint", "@test:lint",
"@test:type:check", "@test:type:check",
"@test:type:coverage", "@test:type:coverage",

View File

@ -684,6 +684,10 @@ final class Expectation
$realPath = realpath($object->path); $realPath = realpath($object->path);
if ($realPath === false) {
return false;
}
foreach (Composer::userNamespacesWithDirectories() as $directory => $namespace) { foreach (Composer::userNamespacesWithDirectories() as $directory => $namespace) {
if (str_starts_with($realPath, $directory)) { if (str_starts_with($realPath, $directory)) {
$relativePath = substr($realPath, strlen($directory) + 1); $relativePath = substr($realPath, strlen($directory) + 1);

View File

@ -1813,5 +1813,4 @@
✓ pass with dataset with ('my-datas-set-value') ✓ pass with dataset with ('my-datas-set-value')
✓ within describe → pass with dataset with ('my-datas-set-value') ✓ within describe → pass with dataset with ('my-datas-set-value')
Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 39 todos, 35 skipped, 1209 passed (2842 assertions) Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 39 todos, 35 skipped, 1211 passed (2847 assertions)