File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 37
37
run : composer install --no-interaction --prefer-dist
38
38
39
39
- name : Execute tests
40
- run : vendor/bin/phpunit --verbose
40
+ run : vendor/bin/phpunit
41
41
env :
42
42
APP_ENV : testing
Original file line number Diff line number Diff line change 49
49
},
50
50
"require-dev" : {
51
51
"mockery/mockery" : " ^1.2.3" ,
52
- "yoast/phpunit-polyfills" : " ^0.2.0" ,
52
+ "yoast/phpunit-polyfills" : " ^0.2.0|^4.0 " ,
53
53
"laravel/pint" : " ^1.4"
54
54
},
55
55
"bin" : [
Original file line number Diff line number Diff line change 2
2
3
3
use Illuminate \Container \Container ;
4
4
use Illuminate \Support \Collection ;
5
+ use PHPUnit \Framework \Attributes \DataProvider ;
5
6
use Valet \Brew ;
6
7
use Valet \CommandLine ;
7
8
use Valet \Filesystem ;
@@ -388,6 +389,7 @@ public function test_get_all_running_services_will_return_unique_services()
388
389
/**
389
390
* @dataProvider supportedPhpLinkPathProvider
390
391
*/
392
+ #[DataProvider('supportedPhpLinkPathProvider ' )]
391
393
public function test_get_parsed_linked_php_will_return_matches_for_linked_php ($ path , $ matches )
392
394
{
393
395
$ getBrewMock = function ($ filesystem ) {
@@ -405,6 +407,7 @@ public function test_get_parsed_linked_php_will_return_matches_for_linked_php($p
405
407
/**
406
408
* @dataProvider supportedPhpLinkPathProvider
407
409
*/
410
+ #[DataProvider('supportedPhpLinkPathProvider ' )]
408
411
public function test_get_linked_php_formula_will_return_linked_php_directory ($ path , $ matches , $ expectedLinkFormula )
409
412
{
410
413
$ brewMock = Mockery::mock (Brew::class)->makePartial ();
@@ -489,7 +492,7 @@ public function test_it_can_compare_two_php_versions()
489
492
/**
490
493
* Provider of php links and their expected split matches.
491
494
*/
492
- public function supportedPhpLinkPathProvider (): array
495
+ public static function supportedPhpLinkPathProvider (): array
493
496
{
494
497
return [
495
498
[
You can’t perform that action at this time.
0 commit comments