File tree 4 files changed +38
-2
lines changed
4 files changed +38
-2
lines changed Original file line number Diff line number Diff line change 24
24
},
25
25
"require-dev" : {
26
26
"laravel/pint" : " ^1.13" ,
27
+ "orchestra/testbench" : " ^8.15" ,
27
28
"pestphp/pest" : " ^2.19.2" ,
28
29
"phpstan/phpstan" : " ^1.10.34" ,
29
30
"rector/rector" : " ^0.18.3" ,
39
40
},
40
41
"autoload-dev" : {
41
42
"psr-4" : {
42
- "Tests\\ " : " tests/"
43
+ "Tests\\ " : " tests/" ,
44
+ "Workbench\\ App\\ " : " workbench/app/" ,
45
+ "Workbench\\ Database\\ Factories\\ " : " workbench/database/factories/" ,
46
+ "Workbench\\ Database\\ Seeders\\ " : " workbench/database/seeders/"
43
47
}
44
48
},
45
49
"minimum-stability" : " stable" ,
70
74
" @test:lint" ,
71
75
" @test:types" ,
72
76
" @test:unit"
77
+ ],
78
+ "post-autoload-dump" : [
79
+ " @clear" ,
80
+ " @prepare"
81
+ ],
82
+ "clear" : " @php vendor/bin/testbench package:purge-skeleton --ansi" ,
83
+ "prepare" : " @php vendor/bin/testbench package:discover --ansi" ,
84
+ "build" : " @php vendor/bin/testbench workbench:build --ansi" ,
85
+ "serve" : [
86
+ " Composer\\ Config::disableProcessTimeout" ,
87
+ " @build" ,
88
+ " @php vendor/bin/testbench serve"
73
89
]
74
90
}
75
- }
91
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ test ('should not use debug functions ' )
4
+ ->expect (['dd ' , 'dump ' ])
5
+ ->not ->toBeUsed ();
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Tests ;
4
+
5
+ use Orchestra \Testbench \TestCase as BaseTestCase ;
6
+
7
+ abstract class TestCase extends BaseTestCase
8
+ {
9
+ //
10
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ test ('example ' , function () {
4
+ expect (true )->toBeTrue ();
5
+ });
You can’t perform that action at this time.
0 commit comments