for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* CodingStandard_Tests_Formatting_NamespaceDeclarationUnitTest.
*
* PHP version 5
* @category PHP
* @package PHP_CodeSniffer
* @author Alexander Obuhovich <[email protected]>
* @license https://github.com/aik099/CodingStandard/blob/master/LICENSE BSD 3-Clause
* @link https://github.com/aik099/CodingStandard
*/
namespace CodingStandard\Tests\Formatting;
use TestSuite\AbstractSniffUnitTest;
* Unit test class for the NamespaceDeclaration sniff.
class NamespaceDeclarationUnitTest 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 Name of the file with test data.
* @return array(int => int)
public function getErrorList($testFile)
if ($testFile !== 'NamespaceDeclarationUnitTest.1.inc') {
return array();
}
return array(
2 => 1,
9 => 1,
18 => 1,
58 => 1,
67 => 1,
78 => 1,
89 => 1,
);
}//end getErrorList()
* Returns the lines where warnings should occur.
* should represent the number of warnings that should occur on that line.
public function getWarningList($testFile)
}//end getWarningList()
}//end class