From 5a2fd2e1fac69f17b0065f32e3994385e8edbc1d Mon Sep 17 00:00:00 2001 From: sixlive Date: Mon, 2 Sep 2024 10:52:08 -0400 Subject: [PATCH] wip --- .gitignore | 2 +- phpunit.xml.dist | 10 ++++++---- tests/AssertResponseTest.php | 17 ++++++----------- 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 868a3f2..3cec856 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ composer.lock vendor/ coverage/ .php-cs-fixer.cache -.phpunit.result.cache +.phpunit*.cache diff --git a/phpunit.xml.dist b/phpunit.xml.dist index da7d989..306e1e6 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,9 +1,6 @@ - + - - src/ - @@ -18,4 +15,9 @@ + + + src/ + + diff --git a/tests/AssertResponseTest.php b/tests/AssertResponseTest.php index 904653a..10e947f 100644 --- a/tests/AssertResponseTest.php +++ b/tests/AssertResponseTest.php @@ -18,8 +18,7 @@ public function setUp(): void }); } - /** @test */ - public function valid_schema_passes_as_json() + public function test_valid_schema_passes_as_json() { $schema = [ 'type' => 'object', @@ -36,8 +35,7 @@ public function valid_schema_passes_as_json() $this->get('foo')->assertJsonSchema(json_encode($schema)); } - /** @test */ - public function valid_schema_passes_as_array() + public function test_valid_schema_passes_as_array() { $schema = [ 'type' => 'object', @@ -54,15 +52,13 @@ public function valid_schema_passes_as_array() $this->get('foo')->assertJsonSchema($schema); } - /** @test */ - public function valid_schema_passes_as_file_path() + public function test_valid_schema_passes_as_file_path() { $this->get('foo') - ->assertJsonSchema(__DIR__.'/Support/Schemas/foo.json'); + ->assertJsonSchema(__DIR__.'/Support/Schemas/foo.json'); } - /** @test */ - public function invalid_schema_fails_with_message() + public function test_invalid_schema_fails_with_message() { $this->expectException(AssertionFailedError::class); @@ -81,8 +77,7 @@ public function invalid_schema_fails_with_message() $this->get('foo')->assertJsonSchema(json_encode($schema)); } - /** @test */ - public function valid_schema_passes_as_config_path() + public function test_valid_schema_passes_as_config_path() { $this->get('foo')->assertJsonSchema('foo'); }