diff --git a/composer.json b/composer.json index b0fd66d..69e7439 100644 --- a/composer.json +++ b/composer.json @@ -21,11 +21,11 @@ "php": "^7.4|^8.0|^8.1|^8.2", "blade-ui-kit/blade-icons": "^1.1", "ext-json": "*", - "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0" + "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0" }, "require-dev": { - "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0", - "phpunit/phpunit": "^9.0|^10.5|^11.5.3" + "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "phpunit/phpunit": "^9.0|^10.5|^11.5.3|^12.5.12" }, "autoload": { "psr-4": { diff --git a/tests/CompilesIconsTest.php b/tests/CompilesIconsTest.php index c2cd26f..2e36270 100644 --- a/tests/CompilesIconsTest.php +++ b/tests/CompilesIconsTest.php @@ -10,12 +10,10 @@ class CompilesIconsTest extends TestCase { - /** @test */ - public function it_compiles_a_single_anonymous_component() + public function test_it_compiles_a_single_anonymous_component() { $result = svg('flag-country-us')->toHtml(); - // Note: the empty class here seems to be a Blade components bug. $expected = <<<'SVG' SVG; @@ -23,8 +21,7 @@ public function it_compiles_a_single_anonymous_component() $this->assertSame($expected, $result); } - /** @test */ - public function it_can_add_classes_to_icons() + public function test_it_can_add_classes_to_icons() { $result = svg('flag-country-us', 'w-6 h-6 text-gray-500')->toHtml(); @@ -35,8 +32,7 @@ public function it_can_add_classes_to_icons() $this->assertSame($expected, $result); } - /** @test */ - public function it_can_add_styles_to_icons() + public function test_it_can_add_styles_to_icons() { $result = svg('flag-country-us', ['style' => 'color: #555'])->toHtml(); @@ -47,8 +43,7 @@ public function it_can_add_styles_to_icons() $this->assertSame($expected, $result); } - /** @test */ - public function it_compiles_a_circle_variant_icon() + public function test_it_compiles_a_circle_variant_icon() { $result = svg('flag-circle-country-us')->toHtml(); @@ -57,8 +52,7 @@ public function it_compiles_a_circle_variant_icon() $this->assertStringContainsString('circle', $result); } - /** @test */ - public function it_compiles_a_flat_variant_icon() + public function test_it_compiles_a_flat_variant_icon() { $result = svg('flag-flat-country-us')->toHtml(); @@ -66,8 +60,7 @@ public function it_compiles_a_flat_variant_icon() $this->assertStringContainsString('flag-icons-us', $result); } - /** @test */ - public function it_can_add_classes_to_circle_variant_icons() + public function test_it_can_add_classes_to_circle_variant_icons() { $result = svg('flag-circle-country-us', 'w-6 h-6')->toHtml(); @@ -75,8 +68,7 @@ public function it_can_add_classes_to_circle_variant_icons() $this->assertStringContainsString('toHtml(); @@ -84,24 +76,21 @@ public function it_can_add_classes_to_flat_variant_icons() $this->assertStringContainsString('toHtml(); $this->assertStringContainsString('toHtml(); $this->assertStringContainsString('toHtml();