Skip to content

Commit 5a2fd2e

Browse files
committed
wip
1 parent 346a402 commit 5a2fd2e

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ composer.lock
33
vendor/
44
coverage/
55
.php-cs-fixer.cache
6-
.phpunit.result.cache
6+
.phpunit*.cache

phpunit.xml.dist

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?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">
33
<coverage>
4-
<include>
5-
<directory suffix=".php">src/</directory>
6-
</include>
74
<report>
85
<clover outputFile="build/logs/clover.xml"/>
96
<html outputDirectory="build/coverage"/>
@@ -18,4 +15,9 @@
1815
<logging>
1916
<junit outputFile="build/report.junit.xml"/>
2017
</logging>
18+
<source>
19+
<include>
20+
<directory suffix=".php">src/</directory>
21+
</include>
22+
</source>
2123
</phpunit>

tests/AssertResponseTest.php

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ public function setUp(): void
1818
});
1919
}
2020

21-
/** @test */
22-
public function valid_schema_passes_as_json()
21+
public function test_valid_schema_passes_as_json()
2322
{
2423
$schema = [
2524
'type' => 'object',
@@ -36,8 +35,7 @@ public function valid_schema_passes_as_json()
3635
$this->get('foo')->assertJsonSchema(json_encode($schema));
3736
}
3837

39-
/** @test */
40-
public function valid_schema_passes_as_array()
38+
public function test_valid_schema_passes_as_array()
4139
{
4240
$schema = [
4341
'type' => 'object',
@@ -54,15 +52,13 @@ public function valid_schema_passes_as_array()
5452
$this->get('foo')->assertJsonSchema($schema);
5553
}
5654

57-
/** @test */
58-
public function valid_schema_passes_as_file_path()
55+
public function test_valid_schema_passes_as_file_path()
5956
{
6057
$this->get('foo')
61-
->assertJsonSchema(__DIR__.'/Support/Schemas/foo.json');
58+
->assertJsonSchema(__DIR__.'/Support/Schemas/foo.json');
6259
}
6360

64-
/** @test */
65-
public function invalid_schema_fails_with_message()
61+
public function test_invalid_schema_fails_with_message()
6662
{
6763
$this->expectException(AssertionFailedError::class);
6864

@@ -81,8 +77,7 @@ public function invalid_schema_fails_with_message()
8177
$this->get('foo')->assertJsonSchema(json_encode($schema));
8278
}
8379

84-
/** @test */
85-
public function valid_schema_passes_as_config_path()
80+
public function test_valid_schema_passes_as_config_path()
8681
{
8782
$this->get('foo')->assertJsonSchema('foo');
8883
}

0 commit comments

Comments
 (0)