From f6443f5dff888e2e6f2d945c6b923c49c3f35c32 Mon Sep 17 00:00:00 2001 From: Bradley Date: Tue, 27 Jun 2023 09:31:06 +0100 Subject: [PATCH] Add failing test case --- tests/Twig/Runtime/IconRuntimeTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Twig/Runtime/IconRuntimeTest.php b/tests/Twig/Runtime/IconRuntimeTest.php index f8ca7c6..b224641 100644 --- a/tests/Twig/Runtime/IconRuntimeTest.php +++ b/tests/Twig/Runtime/IconRuntimeTest.php @@ -248,4 +248,11 @@ class IconRuntimeTest extends TestCase $this->expectException(\InvalidArgumentException::class); $this->icon->renderIcon(['icon' => self::ICON, 'fake-key-should-throw' => null]); } + + public function testStrokeCurrentColorInstancesAreRemoved(): void + { + $needle = 'stroke="currentColor"'; + $contents = $this->icon->renderIcon(['icon' => self::ICON]); + $this->assertStringNotContainsString($needle, $contents); + } }