PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
tests
/
Core
/
Tokenizers
/
PHP
<?php class PropertyDemo { /* testPublicSetProperty */ public(set) mixed $pub1; /* testPublicSetPropertyUC */ PUBLIC(SET) mixed $pub2; public /* testPublicPublicSetProperty */ public(set) mixed $pub3; public /* testPublicPublicSetPropertyUC */ PUBLIC(SET) mixed $pub4; /* testProtectedSetProperty */ protected(set) mixed $prot1; /* testProtectedSetPropertyUC */ PROTECTED(SET) mixed $prot2; public /* testPublicProtectedSetProperty */ protected(set) mixed $prot3; public /* testPublicProtectedSetPropertyUC */ PROTECTED(SET) mixed $prot4; /* testPrivateSetProperty */ private(set) mixed $priv1; /* testPrivateSetPropertyUC */ PRIVATE(SET) mixed $priv2; public /* testPublicPrivateSetProperty */ private(set) mixed $priv3; public /* testPublicPrivateSetPropertyUC */ PRIVATE(SET) mixed $priv4; /* testInvalidUnsetProperty */ public(unset) mixed $invalid1; /* testInvalidSpaceProperty */ public (set) mixed $invalid2; /* testInvalidCommentProperty */ protected/* foo */(set) mixed $invalid3; /* testInvalidGetProperty */ private(get) mixed $invalid4; /* testInvalidNoParenProperty */ private set mixed $invalid5; } class ConstructorPromotionDemo { public function __construct( /* testPublicSetCPP */ public(set) mixed $pub1, /* testPublicSetCPPUC */ PUBLIC(SET) mixed $pub2, public /* testPublicPublicSetCPP */ public(set) mixed $pub3, public /* testPublicPublicSetCPPUC */ PUBLIC(SET) mixed $pub4, /* testProtectedSetCPP */ protected(set) mixed $prot1, /* testProtectedSetCPPUC */ PROTECTED(SET) mixed $prot2, public /* testPublicProtectedSetCPP */ protected(set) mixed $prot3, public /* testPublicProtectedSetCPPUC */ PROTECTED(SET) mixed $prot4, /* testPrivateSetCPP */ private(set) mixed $priv1, /* testPrivateSetCPPUC */ PRIVATE(SET) mixed $priv2, public /* testPublicPrivateSetCPP */ private(set) mixed $priv3, public /* testPublicPrivateSetCPPUC */ PRIVATE(SET) mixed $priv4, /* testInvalidUnsetCPP */ public(unset) mixed $invalid1, /* testInvalidSpaceCPP */ public (set) mixed $invalid2, /* testInvalidCommentCPP */ protected/* foo */(set) mixed $invalid3, /* testInvalidGetCPP */ private(get) mixed $invalid4, /* testInvalidNoParenCPP */ private set mixed $invalid5, ) {} } class NonVisibilityCases { function /* testProtectedFunctionName */ protected() {} function /* testPublicFunctionName */ public( /* testSetParameterType */ Set $setter ) {} } // Intentional parse error. This must be the last test in the file. class LiveCodingDemo { /* testLiveCoding */ private(set
[-] 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]