Skip to content

Commit c7c302f

Browse files
jasonvargaclaude
andcommitted
Add short open tag test to PHP sanitization tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 898d63d commit c7c302f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/Antlers/Runtime/PhpEnabledTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,10 @@ public function test_sanitize_php_is_case_insensitive()
617617
$this->assertSame('&lt;?pHp echo "test"; ?>', StringUtilities::sanitizePhp('<?pHp echo "test"; ?>'));
618618
}
619619

620-
public function test_sanitize_php_handles_short_echo_tag()
620+
public function test_sanitize_php_handles_short_tags()
621621
{
622622
$this->assertSame('&lt;?= $var ?>', StringUtilities::sanitizePhp('<?= $var ?>'));
623623
$this->assertSame('&lt;?="test"?>', StringUtilities::sanitizePhp('<?="test"?>'));
624+
$this->assertSame("&lt;? echo 'test' ?>", StringUtilities::sanitizePhp("<? echo 'test' ?>"));
624625
}
625626
}

0 commit comments

Comments
 (0)