protected function CoderSniffUnitTest::getSniffCodes in Coder 7.2
Returns a list of sniff codes that should be checked in this test.
Return value
array The list of sniff codes.
1 call to CoderSniffUnitTest::getSniffCodes()
- CoderSniffUnitTest::testSniff in coder_sniffer/
Test/ CoderSniffUnitTest.php - Tests the extending classes Sniff class.
2 methods override CoderSniffUnitTest::getSniffCodes()
- Drupal_BadUnitTest::getSniffCodes in coder_sniffer/
Test/ bad/ BadUnitTest.php - Returns a list of sniff codes that should be checked in this test.
- Drupal_GoodUnitTest::getSniffCodes in coder_sniffer/
Test/ good/ GoodUnitTest.php - Returns a list of sniff codes that should be checked in this test.
File
- coder_sniffer/
Test/ CoderSniffUnitTest.php, line 119
Class
- CoderSniffUnitTest
- An abstract class that all sniff unit tests must extend.
Code
protected function getSniffCodes() {
// The basis for determining file locations.
$basename = substr(get_class($this), 0, -8);
// The code of the sniff we are testing.
$parts = explode('_', $basename);
return array(
$parts[0] . '.' . $parts[2] . '.' . $parts[3],
);
}