File tree Expand file tree Collapse file tree 3 files changed +13
-16
lines changed Expand file tree Collapse file tree 3 files changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ composer.lock
3
3
vendor /
4
4
coverage /
5
5
.php-cs-fixer.cache
6
- .phpunit.result .cache
6
+ .phpunit * .cache
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" bootstrap =" vendor/autoload.php" backupGlobals =" false" backupStaticAttributes = " false " colors =" true" verbose = " true " convertErrorsToExceptions = " true " convertNoticesToExceptions = " true " convertWarningsToExceptions = " true " processIsolation =" false" stopOnFailure =" false" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9 .3/phpunit.xsd" >
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" bootstrap =" vendor/autoload.php" backupGlobals =" false" colors =" true" processIsolation =" false" stopOnFailure =" false" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/11 .3/phpunit.xsd" cacheDirectory = " .phpunit.cache " backupStaticProperties = " false " >
3
3
<coverage >
4
- <include >
5
- <directory suffix =" .php" >src/</directory >
6
- </include >
7
4
<report >
8
5
<clover outputFile =" build/logs/clover.xml" />
9
6
<html outputDirectory =" build/coverage" />
18
15
<logging >
19
16
<junit outputFile =" build/report.junit.xml" />
20
17
</logging >
18
+ <source >
19
+ <include >
20
+ <directory suffix =" .php" >src/</directory >
21
+ </include >
22
+ </source >
21
23
</phpunit >
Original file line number Diff line number Diff line change @@ -18,8 +18,7 @@ public function setUp(): void
18
18
});
19
19
}
20
20
21
- /** @test */
22
- public function valid_schema_passes_as_json ()
21
+ public function test_valid_schema_passes_as_json ()
23
22
{
24
23
$ schema = [
25
24
'type ' => 'object ' ,
@@ -36,8 +35,7 @@ public function valid_schema_passes_as_json()
36
35
$ this ->get ('foo ' )->assertJsonSchema (json_encode ($ schema ));
37
36
}
38
37
39
- /** @test */
40
- public function valid_schema_passes_as_array ()
38
+ public function test_valid_schema_passes_as_array ()
41
39
{
42
40
$ schema = [
43
41
'type ' => 'object ' ,
@@ -54,15 +52,13 @@ public function valid_schema_passes_as_array()
54
52
$ this ->get ('foo ' )->assertJsonSchema ($ schema );
55
53
}
56
54
57
- /** @test */
58
- public function valid_schema_passes_as_file_path ()
55
+ public function test_valid_schema_passes_as_file_path ()
59
56
{
60
57
$ this ->get ('foo ' )
61
- ->assertJsonSchema (__DIR__ .'/Support/Schemas/foo.json ' );
58
+ ->assertJsonSchema (__DIR__ .'/Support/Schemas/foo.json ' );
62
59
}
63
60
64
- /** @test */
65
- public function invalid_schema_fails_with_message ()
61
+ public function test_invalid_schema_fails_with_message ()
66
62
{
67
63
$ this ->expectException (AssertionFailedError::class);
68
64
@@ -81,8 +77,7 @@ public function invalid_schema_fails_with_message()
81
77
$ this ->get ('foo ' )->assertJsonSchema (json_encode ($ schema ));
82
78
}
83
79
84
- /** @test */
85
- public function valid_schema_passes_as_config_path ()
80
+ public function test_valid_schema_passes_as_config_path ()
86
81
{
87
82
$ this ->get ('foo ' )->assertJsonSchema ('foo ' );
88
83
}
You can’t perform that action at this time.
0 commit comments