Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Test warning for when short_open_tag is off.

Some content <? echo $var; ?> Some more content
Some content <? echo $var; ?> Some more content after PHP code

// Test multi-line.
Some content <?
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Although not the focus of this test, this is an intentional parse error when short_open_tag is on.
// This should be the only test in this file.
// Test that the sniff bails when short_open_tag is off and there is a token other than
// T_INLINE_HTML after the short open tag and before the close tag.

<?<?php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ protected function getTestFiles($testFileBase)
$testFiles[] = $testFileBase.'2.inc';
} else {
$testFiles[] = $testFileBase.'3.inc';
$testFiles[] = $testFileBase.'4.inc';
}

return $testFiles;
Expand Down