Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
wp-content
/
themes
/
storefront
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
PEAR
/
Tests
/
Functions
:
FunctionCallSignatureUnitTest.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Unit test class for the FunctionCallSignature sniff. * * @author Greg Sherwood <gsherwood@squiz.net> * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence */ namespace PHP_CodeSniffer\Standards\PEAR\Tests\Functions; use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; class FunctionCallSignatureUnitTest extends AbstractSniffUnitTest { /** * Returns the lines where errors should occur. * * The key of the array should represent the line number and the value * should represent the number of errors that should occur on that line. * * @param string $testFile The name of the file being tested. * * @return array<int, int> */ public function getErrorList($testFile='FunctionCallSignatureUnitTest.inc') { if ($testFile === 'FunctionCallSignatureUnitTest.js') { return [ 5 => 1, 6 => 2, 7 => 1, 8 => 1, 9 => 2, 10 => 3, 17 => 1, 18 => 1, 21 => 1, 24 => 1, 28 => 2, 30 => 2, 35 => 1, 49 => 1, 51 => 1, 54 => 1, 70 => 1, 71 => 1, ]; }//end if return [ 5 => 1, 6 => 2, 7 => 1, 8 => 1, 9 => 2, 10 => 3, 17 => 1, 18 => 1, 31 => 1, 34 => 1, 43 => 2, 57 => 1, 59 => 1, 63 => 1, 64 => 1, 82 => 1, 93 => 1, 100 => 1, 106 => 2, 119 => 1, 120 => 1, 129 => 1, 137 => 1, 142 => 2, 171 => 1, 180 => 1, 181 => 1, 194 => 1, 213 => 2, 215 => 2, 217 => 2, 218 => 2, 277 => 1, 278 => 1, 303 => 1, 308 => 1, 321 => 1, 322 => 1, 329 => 1, 330 => 1, 337 => 1, 342 => 1, 343 => 1, 345 => 1, 346 => 2, 353 => 1, 354 => 1, 355 => 2, 377 => 1, 378 => 1, 379 => 1, 380 => 1, 385 => 1, 386 => 1, 387 => 1, 388 => 1, 393 => 1, 394 => 1, 395 => 1, 396 => 1, 411 => 1, 422 => 1, 424 => 1, 429 => 1, 432 => 1, 440 => 1, 441 => 1, 442 => 1, 464 => 1, 510 => 1, 513 => 1, 514 => 1, 523 => 1, 524 => 3, 527 => 2, 539 => 1, 540 => 1, 546 => 1, 547 => 1, 548 => 1, ]; }//end getErrorList() /** * Returns the lines where warnings should occur. * * The key of the array should represent the line number and the value * should represent the number of warnings that should occur on that line. * * @return array<int, int> */ public function getWarningList() { return []; }//end getWarningList() }//end class