PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
tests
/
Core
/
Files
/
File
<?php /** * Tests for the \PHP_CodeSniffer\Files\File::getMethodParameters method. * * @author Juliette Reinders Folmer <phpcs_nospam@adviesenzo.nl> * @copyright 2019-2024 PHPCSStandards Contributors * @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence */ namespace PHP_CodeSniffer\Tests\Core\Files\File; use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; /** * Tests for the \PHP_CodeSniffer\Files\File::getMethodParameters method. * * @covers \PHP_CodeSniffer\Files\File::getMethodParameters */ final class GetMethodParametersParseError1Test extends AbstractMethodUnitTest { /** * Test receiving an empty array when encountering a specific parse error. * * @return void */ public function testParseError() { $target = $this->getTargetToken('/* testParseError */', [T_FUNCTION, T_CLOSURE, T_FN]); $result = self::$phpcsFile->getMethodParameters($target); $this->assertSame([], $result); }//end testParseError() }//end class
[-] 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]