WordPress-Coding-Standards/Tests/VIP/DirectDatabaseQueryUnitTest.php
Shady Sharaf 2bd6993318 Limit whitelisting to usage of wpdb, not including missing cache
Some syntax tweaks, and tweaks on unit test to cascade changes
2013-10-23 00:33:13 +02:00

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