PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
tests
/
Core
/
Files
/
File
<?php /* testInvalidTokenPassed */ echo MY_CONSTANT; /* testClosure */ $closure = function() {}; /* testAnonClassWithParens */ $anonClass = new class() {}; /* testAnonClassWithParens2 */ $class = new class() { private $property = 'test'; public function test() {} }; /* testAnonClassWithoutParens */ $anonClass = new class {}; /* testAnonClassExtendsWithoutParens */ $class = new class extends SomeClass { private $property = 'test'; public function test() {} }; /* testFunction */ function functionName() {} /* testFunctionReturnByRef */ function & functionNameByRef() {} /* testClass */ abstract class ClassName { /* testMethod */ public function methodName() {} /* testAbstractMethod */ abstract protected function abstractMethodName(); /* testMethodReturnByRef */ private function &MethodNameByRef(); } /* testExtendedClass */ class ExtendedClass extends Foo {} /* testInterface */ interface InterfaceName {} /* testTrait */ trait TraitName { /* testFunctionEndingWithNumber */ function ValidNameEndingWithNumber5(){} } /* testClassWithNumber */ class ClassWith1Number implements SomeInterface {} /* testInterfaceWithNumbers */ interface InterfaceWith12345Numbers extends AnotherInterface {} /* testClassWithCommentsAndNewLines */ class /* comment */ // phpcs:ignore Standard.Cat.SniffName -- for reasons ClassWithCommentsAndNewLines {} /* testFunctionFn */ function fn() {} /* testPureEnum */ enum Foo { case SOME_CASE; } /* testBackedEnumSpaceBetweenNameAndColon */ enum Hoo : string { case ONE = 'one'; case TWO = 'two'; } /* testBackedEnumNoSpaceBetweenNameAndColon */ enum Suit: int implements Colorful, CardGame {} /* testFunctionReturnByRefWithReservedKeywordEach */ function &each() {} /* testFunctionReturnByRefWithReservedKeywordParent */ function &parent() {} /* testFunctionReturnByRefWithReservedKeywordSelf */ function &self() {} /* testFunctionReturnByRefWithReservedKeywordStatic */ function &static() {}
[-] GetMethodParametersParseError2Test.inc
[edit]
[-] GetDeclarationNameJSTest.php
[edit]
[-] FindImplementedInterfaceNamesTest.inc
[edit]
[-] GetDeclarationNameParseError1Test.inc
[edit]
[-] FindEndOfStatementTest.inc
[edit]
[-] GetDeclarationNameParseError1Test.php
[edit]
[-] GetMethodPropertiesTest.inc
[edit]
[-] GetDeclarationNameTest.inc
[edit]
[-] GetDeclarationNameParseError2Test.php
[edit]
[+]
..
[-] GetMethodParametersTest.inc
[edit]
[-] GetMethodPropertiesTest.php
[edit]
[-] GetDeclarationNameTest.php
[edit]
[-] IsReferenceTest.inc
[edit]
[-] GetConditionTest.inc
[edit]
[-] GetDeclarationNameJSTest.js
[edit]
[-] GetMethodParametersParseError1Test.php
[edit]
[-] FindStartOfStatementTest.php
[edit]
[-] FindStartOfStatementTest.inc
[edit]
[-] GetClassPropertiesTest.inc
[edit]
[-] FindExtendedClassNameTest.inc
[edit]
[-] IsReferenceTest.php
[edit]
[-] GetTokensAsStringTest.php
[edit]
[-] FindExtendedClassNameTest.php
[edit]
[-] GetConditionTest.php
[edit]
[-] GetDeclarationNameParseError2Test.inc
[edit]
[-] GetMethodParametersParseError1Test.inc
[edit]
[-] GetMemberPropertiesTest.inc
[edit]
[-] GetMethodParametersParseError2Test.php
[edit]
[-] FindEndOfStatementTest.php
[edit]
[-] GetMethodParametersTest.php
[edit]
[-] GetTokensAsStringTest.inc
[edit]
[-] GetMemberPropertiesTest.php
[edit]
[-] FindImplementedInterfaceNamesTest.php
[edit]
[-] GetClassPropertiesTest.php
[edit]