File tree Expand file tree Collapse file tree 6 files changed +24
-24
lines changed Expand file tree Collapse file tree 6 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 1
1
vendor /
2
2
composer.lock
3
- .phpunit.result. cache
3
+ .phpunit.cache /
Original file line number Diff line number Diff line change 32
32
},
33
33
"require-dev" : {
34
34
"orchestra/testbench" : " ^8.0" ,
35
- "phpunit/phpunit" : " ^9.5.28 "
35
+ "phpunit/phpunit" : " ^10.5 "
36
36
},
37
37
"autoload" : {
38
38
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
3
backupGlobals =" false"
4
- backupStaticAttributes =" false"
5
- beStrictAboutTestsThatDoNotTestAnything =" false"
4
+ beStrictAboutTestsThatDoNotTestAnything =" true"
6
5
bootstrap =" vendor/autoload.php"
7
6
colors =" true"
8
- convertErrorsToExceptions =" true"
9
- convertNoticesToExceptions =" true"
10
- convertWarningsToExceptions =" true"
11
- convertDeprecationsToExceptions =" true"
12
7
processIsolation =" false"
13
8
stopOnError =" false"
14
9
stopOnFailure =" false"
15
- verbose =" true"
16
- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd"
10
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.4/phpunit.xsd"
11
+ cacheDirectory =" .phpunit.cache"
12
+ backupStaticProperties =" false"
13
+ failOnWarning =" true"
14
+ failOnDeprecation =" true"
15
+ failOnNotice =" true"
17
16
>
18
- <coverage >
19
- <include >
20
- <directory suffix =" .php" >src/</directory >
21
- </include >
22
- </coverage >
17
+ <coverage />
23
18
<testsuites >
24
19
<testsuite name =" Unit" >
25
20
<directory suffix =" Test.php" >./tests/Unit/</directory >
29
24
</testsuite >
30
25
</testsuites >
31
26
<php >
32
- <ini name =" error_reporting" value =" E_ALL" />
27
+ <ini name =" error_reporting" value =" E_ALL" />
33
28
</php >
34
- </phpunit >
29
+ <source >
30
+ <include >
31
+ <directory suffix =" .php" >src/</directory >
32
+ </include >
33
+ </source >
34
+ </phpunit >
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ protected function setUp(): void
61
61
/**
62
62
* @return array
63
63
*/
64
- public function emptyIdProvider (): array
64
+ public static function emptyIdProvider (): array
65
65
{
66
66
return [
67
67
['' ],
@@ -73,7 +73,7 @@ public function emptyIdProvider(): array
73
73
/**
74
74
* @return array[]
75
75
*/
76
- public function createProvider (): array
76
+ public static function createProvider (): array
77
77
{
78
78
return [
79
79
'data:required ' => [
@@ -698,7 +698,7 @@ public function createProvider(): array
698
698
/**
699
699
* @return array
700
700
*/
701
- public function updateProvider (): array
701
+ public static function updateProvider (): array
702
702
{
703
703
return [
704
704
'data.id:required ' => [
@@ -781,7 +781,7 @@ public function updateProvider(): array
781
781
/**
782
782
* @return array
783
783
*/
784
- public function emptyStringProvider (): array
784
+ public static function emptyStringProvider (): array
785
785
{
786
786
return [
787
787
['' ],
@@ -838,7 +838,7 @@ public function testInvalidJson(): void
838
838
/**
839
839
* @return array
840
840
*/
841
- public function nonObjectProvider (): array
841
+ public static function nonObjectProvider (): array
842
842
{
843
843
return [
844
844
['true ' ],
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ protected function setUp(): void
49
49
/**
50
50
* @return array
51
51
*/
52
- public function toManyProvider (): array
52
+ public static function toManyProvider (): array
53
53
{
54
54
return [
55
55
'data:required ' => [
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ protected function setUp(): void
49
49
/**
50
50
* @return array
51
51
*/
52
- public function toOneProvider (): array
52
+ public static function toOneProvider (): array
53
53
{
54
54
return [
55
55
'data:required ' => [
You can’t perform that action at this time.
0 commit comments