From 692789b21ddd170efb6f42b6fef8ed690ed3d438 Mon Sep 17 00:00:00 2001 From: Bradley Date: Tue, 27 Jun 2023 09:36:40 +0100 Subject: [PATCH] Test removing current color --- tests/Twig/Runtime/IconRuntimeTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Twig/Runtime/IconRuntimeTest.php b/tests/Twig/Runtime/IconRuntimeTest.php index b224641..53f00ed 100644 --- a/tests/Twig/Runtime/IconRuntimeTest.php +++ b/tests/Twig/Runtime/IconRuntimeTest.php @@ -251,8 +251,10 @@ class IconRuntimeTest extends TestCase public function testStrokeCurrentColorInstancesAreRemoved(): void { - $needle = 'stroke="currentColor"'; + $needleA = 'stroke="currentColor"'; + $needleB = 'stroke=\'currentColor\''; $contents = $this->icon->renderIcon(['icon' => self::ICON]); - $this->assertStringNotContainsString($needle, $contents); + $this->assertStringNotContainsString($needleA, $contents); + $this->assertStringNotContainsString($needleB, $contents); } }