@@ -28,6 +28,6 @@ |
||
28 | 28 | if ($this->reason) { |
29 | 29 | $reason = ": $this->reason"; |
30 | 30 | } |
31 | - return "Skipped $this->name$reason\n"; |
|
31 | + return "skipped $this->name$reason\n"; |
|
32 | 32 | } |
33 | 33 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | |
14 | 14 | $cmd = new Parser("", [ |
15 | 15 | "path" => [ |
16 | - Parser::Default => $vendorDirectory . "/../tests", |
|
16 | + Parser::default => $vendorDirectory . "/../tests", |
|
17 | 17 | ], |
18 | 18 | "--colors" => [ |
19 | 19 | Parser::Optional => true, |
@@ -41,15 +41,15 @@ |
||
41 | 41 | try { |
42 | 42 | $reflection = new ReflectionMethod($class, $dataProvider); |
43 | 43 | if (!$reflection->isPublic()) { |
44 | - throw new InvalidDataProviderException("Method $className::$dataProvider is not public."); |
|
44 | + throw new InvalidDataProviderException("method $className::$dataProvider is not public."); |
|
45 | 45 | } |
46 | 46 | $result = call_user_func([$class, $dataProvider]); // @phpstan-ignore argument.type |
47 | 47 | if (!is_array($result)) { |
48 | - throw new InvalidDataProviderException("Method $className::$dataProvider has to return an array."); |
|
48 | + throw new InvalidDataProviderException("method $className::$dataProvider has to return an array."); |
|
49 | 49 | } |
50 | 50 | return $result; |
51 | 51 | } catch (\ReflectionException $e) { |
52 | - throw new InvalidDataProviderException("Method $className::$dataProvider does not exist.", 0, $e); |
|
52 | + throw new InvalidDataProviderException("method $className::$dataProvider does not exist.", 0, $e); |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | return []; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | if ($success) { |
20 | 20 | return; |
21 | 21 | } |
22 | - throw new AssertionFailedException("Test $this->taskCount failed. $text"); |
|
22 | + throw new AssertionFailedException("test $this->taskCount failed. $text"); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | /** |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | { |
333 | 333 | $expected = @file_get_contents($filename); |
334 | 334 | if ($expected === false) { |
335 | - $this->testResult("File $filename could not be loaded.", false); |
|
335 | + $this->testResult("file $filename could not be loaded.", false); |
|
336 | 336 | return; |
337 | 337 | } |
338 | 338 | $this->assertSame($expected, $actual); |