PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
tests
/
Core
/
Tokenizers
/
PHP
<?php // Test source: https://gist.github.com/iluuu1994/72e2154fc4150f2258316b0255b698f2#file-test-php /* testSimple1 */ $heredoc = <<<EOD $foo EOD; /* testSimple2 */ $heredoc = <<<"EOD" {$foo} EOD; /* testSimple3 */ $heredoc = <<<EOD ${foo} EOD; /* testDIM1 */ $heredoc = <<<"EOD" $foo[bar] EOD; /* testDIM2 */ $heredoc = <<<EOD {$foo['bar']} EOD; /* testDIM3 */ $heredoc = <<<"EOD" ${foo['bar']} EOD; /* testProperty1 */ $heredoc = <<<EOD $foo->bar EOD; /* testProperty2 */ $heredoc = <<<"EOD" {$foo->bar} EOD; /* testMethod1 */ $heredoc = <<<EOD {$foo->bar()} EOD; /* testClosure1 */ $heredoc = <<<"EOD" {$foo()} EOD; /* testChain1 */ $heredoc = <<<EOD {$foo['bar']->baz()()} EOD; /* testVariableVar1 */ $heredoc = <<<"EOD" ${$bar} EOD; /* testVariableVar2 */ $heredoc = <<<EOD ${(foo)} EOD; /* testVariableVar3 */ $heredoc = <<<"EOD" ${foo->bar} EOD; /* testNested1 */ $heredoc = <<<EOD ${foo["${bar}"]} EOD; /* testNested2 */ $heredoc = <<<"EOD" ${foo["${bar['baz']}"]} EOD; /* testNested3 */ $heredoc = <<<EOD ${foo->{$baz}} EOD; /* testNested4 */ $heredoc = <<<"EOD" ${foo->{${'a'}}} EOD; /* testNested5 */ $heredoc = <<<EOD ${foo->{"${'a'}"}} EOD; /* testSimple1Wrapped */ $heredoc = <<<EOD Do $foo Something EOD; /* testSimple2Wrapped */ $heredoc = <<<"EOD" Do {$foo} Something EOD; /* testSimple3Wrapped */ $heredoc = <<<EOD Do ${foo} Something EOD; /* testDIM1Wrapped */ $heredoc = <<<"EOD" Do $foo[bar] Something EOD; /* testDIM2Wrapped */ $heredoc = <<<EOD Do {$foo['bar']} Something EOD; /* testDIM3Wrapped */ $heredoc = <<<"EOD" Do ${foo['bar']} Something EOD; /* testProperty1Wrapped */ $heredoc = <<<EOD Do $foo->bar Something EOD; /* testProperty2Wrapped */ $heredoc = <<<"EOD" Do {$foo->bar} Something EOD; /* testMethod1Wrapped */ $heredoc = <<<EOD Do {$foo->bar()} Something EOD; /* testClosure1Wrapped */ $heredoc = <<<"EOD" Do {$foo()} Something EOD; /* testChain1Wrapped */ $heredoc = <<<EOD Do {$foo['bar']->baz()()} Something EOD; /* testVariableVar1Wrapped */ $heredoc = <<<"EOD" Do ${$bar} Something EOD; /* testVariableVar2Wrapped */ $heredoc = <<<EOD Do ${(foo)} Something EOD; /* testVariableVar3Wrapped */ $heredoc = <<<"EOD" Do ${foo->bar} Something EOD; /* testNested1Wrapped */ $heredoc = <<<EOD Do ${foo["${bar}"]} Something EOD; /* testNested2Wrapped */ $heredoc = <<<"EOD" Do ${foo["${bar['baz']}"]} Something EOD; /* testNested3Wrapped */ $heredoc = <<<EOD Do ${foo->{$baz}} Something EOD; /* testNested4Wrapped */ $heredoc = <<<"EOD" Do ${foo->{${'a'}}} Something EOD; /* testNested5Wrapped */ $heredoc = <<<EOD Do ${foo->{"${'a'}"}} Something EOD;
[-] BackfillExplicitOctalNotationTest.php
[edit]
[-] PHPOpenTagEOF2Test.inc
[edit]
[-] BackfillEnumTest.inc
[edit]
[-] PHPOpenTagEOF1Test.php
[edit]
[-] BackfillAsymmetricVisibilityTest.php
[edit]
[-] EnumCaseTest.php
[edit]
[-] StableCommentWhitespaceTest.inc
[edit]
[-] HeredocNowdocTest.inc
[edit]
[-] TypeIntersectionTest.php
[edit]
[-] DNFTypesParseError2Test.php
[edit]
[-] TypeIntersectionTest.inc
[edit]
[-] NamedFunctionCallArgumentsTest.inc
[edit]
[-] TypedConstantsTest.inc
[edit]
[-] UndoNamespacedNameSingleTokenTest.php
[edit]
[-] BackfillFnTokenParseErrorTest.inc
[edit]
[+]
..
[-] StableCommentWhitespaceWinTest.php
[edit]
[-] DNFTypesTest.inc
[edit]
[-] DNFTypesParseError1Test.inc
[edit]
[-] BitwiseOrTest.php
[edit]
[-] BackfillFnTokenParseErrorTest.php
[edit]
[-] DoubleQuotedStringTest.php
[edit]
[-] BackfillReadonlyTest.inc
[edit]
[-] PHPOpenTagEOF1Test.inc
[edit]
[-] PHPOpenTagEOF2Test.php
[edit]
[-] BackfillNumericSeparatorTest.inc
[edit]
[-] ArrayKeywordTest.inc
[edit]
[-] BackfillMatchTokenTest.php
[edit]
[-] DoubleArrowTest.inc
[edit]
[-] HeredocStringTest.inc
[edit]
[-] GotoLabelTest.inc
[edit]
[-] OtherContextSensitiveKeywordsTest.php
[edit]
[-] StableCommentWhitespaceTest.php
[edit]
[-] NullsafeObjectOperatorTest.php
[edit]
[-] DNFTypesParseError1Test.php
[edit]
[-] AttributesTest.php
[edit]
[-] ExitKeywordTest.inc
[edit]
[-] HeredocParseErrorTest.php
[edit]
[-] AnonClassParenthesisOwnerTest.php
[edit]
[-] NullableVsInlineThenTest.inc
[edit]
[-] ArrayKeywordTest.php
[edit]
[-] NullsafeObjectOperatorTest.inc
[edit]
[-] BackfillExplicitOctalNotationTest.inc
[edit]
[-] ResolveSimpleTokenTest.inc
[edit]
[-] DNFTypesParseError2Test.inc
[edit]
[-] BackfillEnumTest.php
[edit]
[-] YieldTest.inc
[edit]
[-] BackfillReadonlyTest.php
[edit]
[-] HeredocNowdocTest.php
[edit]
[-] ShortArrayTest.inc
[edit]
[-] DefaultKeywordTest.php
[edit]
[-] StableCommentWhitespaceWinTest.inc
[edit]
[-] BitwiseOrTest.inc
[edit]
[-] DNFTypesTest.php
[edit]
[-] DoubleArrowTest.php
[edit]
[-] EnumCaseTest.inc
[edit]
[-] TypedConstantsTest.php
[edit]
[-] BackfillNumericSeparatorTest.php
[edit]
[-] BackfillFnTokenTest.php
[edit]
[-] FinallyTest.inc
[edit]
[-] HeredocStringTest.php
[edit]
[-] ShortArrayTest.php
[edit]
[-] BackfillMatchTokenTest.inc
[edit]
[-] NullableVsInlineThenTest.php
[edit]
[-] DoubleQuotedStringTest.inc
[edit]
[-] GotoLabelTest.php
[edit]
[-] ExitKeywordTest.php
[edit]
[-] HeredocParseErrorTest.inc
[edit]
[-] ResolveSimpleTokenTest.php
[edit]
[-] UndoNamespacedNameSingleTokenTest.inc
[edit]
[-] OtherContextSensitiveKeywordsTest.inc
[edit]
[-] NamedFunctionCallArgumentsTest.php
[edit]
[-] AnonClassParenthesisOwnerTest.inc
[edit]
[-] PHPOpenTagEOF3Test.inc
[edit]
[-] BackfillFnTokenTest.inc
[edit]
[-] BackfillAsymmetricVisibilityTest.inc
[edit]
[-] AttributesTest.inc
[edit]
[-] ContextSensitiveKeywordsTest.inc
[edit]
[-] FinallyTest.php
[edit]
[-] PHPOpenTagEOF3Test.php
[edit]
[-] YieldTest.php
[edit]
[-] DefaultKeywordTest.inc
[edit]
[-] ContextSensitiveKeywordsTest.php
[edit]