mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
switch tests to snapshot assertions (#958)
* install spatie/phpunit-snapshot-assertions * switch GenerateBasicPhpdocFinal test to snapshot assertion * use v3 of spatie/phpunit-snapshot-assertions to be PHP7.2 compatible * add txt snapshot driver * fix EloquentCommandTest * replace all heredocs by snapshots * make test compatible with old/deprecated versions * Update composer.json * normalize composer.json * fix merge conflict * Allow older snapshot versions * normalize composer.json Co-authored-by: Barry vd. Heuvel <[email protected]> Co-authored-by: barryvdh <[email protected]>
This commit is contained in:
co-authored by
Barry vd. Heuvel
barryvdh
parent
cca99b6d25
commit
07d45d2d7a
+6
-1
@@ -35,9 +35,13 @@
|
||||
"mockery/mockery": "^1.3",
|
||||
"orchestra/testbench": "^3 || ^4 || ^5",
|
||||
"phpro/grumphp": "^0.19.0",
|
||||
"spatie/phpunit-snapshot-assertions": "^1.4 || ^2.2 || ^3",
|
||||
"squizlabs/php_codesniffer": "^3.5",
|
||||
"vimeo/psalm": "^3.12"
|
||||
},
|
||||
"config": {
|
||||
"sort-packages": true
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.6-dev"
|
||||
@@ -62,6 +66,7 @@
|
||||
"analyze": "psalm",
|
||||
"check-style": "phpcs -p --standard=PSR12 src/",
|
||||
"fix-style": "phpcbf -p --standard=PSR12 src/",
|
||||
"test": "phpunit"
|
||||
"test": "phpunit",
|
||||
"test-regenerate": "phpunit -d --update-snapshots"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user