mirror of
https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2026-07-29 10:56:57 +08:00
58 lines
1.1 KiB
PHP
58 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Unit test class for the Direct Database Query.
|
|
*
|
|
* PHP version 5
|
|
*
|
|
* @category PHP
|
|
* @package PHP_CodeSniffer
|
|
* @author Shady Sharaf <shady@x-team.com>
|
|
* @link http://pear.php.net/package/PHP_CodeSniffer
|
|
*/
|
|
|
|
class WordPress_Tests_VIP_DirectDatabaseQueryUnitTest 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.
|
|
*
|
|
* @return array(int => int)
|
|
*/
|
|
public function getErrorList()
|
|
{
|
|
return array(
|
|
6 => 1,
|
|
8 => 1,
|
|
32 => 1,
|
|
34 => 1,
|
|
50 => 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 array(
|
|
6 => 1,
|
|
17 => 1,
|
|
38 => 1,
|
|
50 => 1,
|
|
);
|
|
|
|
}//end getWarningList()
|
|
|
|
|
|
}//end class
|