mirror of
https://github.com/pestphp/pest.git
synced 2026-04-20 22:20:17 +02:00
chore: updates snapshots
This commit is contained in:
3
.github/workflows/static.yml
vendored
3
.github/workflows/static.yml
vendored
@ -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
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
@ -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)
|
||||||
|
|
||||||
Reference in New Issue
Block a user