Skip to content

Commit 856fa77

Browse files
committed
Move test to trigger snippet clipping to its own line
1 parent 6e45d9d commit 856fa77

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.3.inc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Test warning for when short_open_tag is off.
22

3-
Some content <? echo $var; ?> Some more content after PHP code
3+
Some content <? echo $var; ?> Some more content
44

55
// Test multi-line.
66
Some content <?
@@ -12,5 +12,8 @@ Some content <?
1212
echo '<?';
1313
?> Some more content
1414

15+
// Test snippet clipping with a line that has more than 40 characters after the PHP open tag.
16+
Some content <? echo $var; ?> Some longer content to trigger snippet clipping
17+
1518
// Only recognize closing tag after opener.
1619
Some?> content <?

src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public function getWarningList($testFile='')
9898
3 => 1,
9999
6 => 1,
100100
11 => 1,
101+
16 => 1,
101102
];
102103
default:
103104
return [];

0 commit comments

Comments
 (0)