3
* Unit test class for the CodeAnalyzer sniff.
8
* @package PHP_CodeSniffer
9
* @author Greg Sherwood <gsherwood@squiz.net>
10
* @author Marc McIntyre <mmcintyre@squiz.net>
11
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
12
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
13
* @link http://pear.php.net/package/PHP_CodeSniffer
17
* Unit test class for the CodeAnalyzer sniff.
19
* A sniff unit test checks a .inc file for expected violations of a single
20
* coding standard. Expected errors and warnings are stored in this class.
23
* @package PHP_CodeSniffer
24
* @author Greg Sherwood <gsherwood@squiz.net>
25
* @author Marc McIntyre <mmcintyre@squiz.net>
26
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
27
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
28
* @version Release: 1.5.5
29
* @link http://pear.php.net/package/PHP_CodeSniffer
31
class Zend_Tests_Debug_CodeAnalyzerUnitTest extends AbstractSniffUnitTest
36
* Should this test be skipped for some reason.
40
protected function shouldSkipTest()
42
$analyzerPath = PHP_CodeSniffer::getConfigData('zend_ca_path');
43
return (is_null($analyzerPath));
45
}//end shouldSkipTest()
49
* Returns the lines where errors should occur.
51
* The key of the array should represent the line number and the value
52
* should represent the number of errors that should occur on that line.
54
* @return array<int, int>
56
public function getErrorList()
64
* Returns the lines where warnings should occur.
66
* The key of the array should represent the line number and the value
67
* should represent the number of warnings that should occur on that line.
69
* @return array<int, int>
71
public function getWarningList()
77
}//end getWarningList()