| 1 | <?php |
||
| 23 | class CodingStandard_Tests_NamingConventions_ValidClassNameUnitTest extends AbstractSniffUnitTest |
||
|
|
|||
| 24 | { |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Returns the lines where errors should occur. |
||
| 28 | * |
||
| 29 | * The key of the array should represent the line number and the value |
||
| 30 | * should represent the number of errors that should occur on that line. |
||
| 31 | * |
||
| 32 | * @param string $testFile Name of the file with test data. |
||
| 33 | * |
||
| 34 | * @return array(int => int) |
||
| 35 | */ |
||
| 36 | public function getErrorList($testFile) |
||
| 44 | |||
| 45 | |||
| 46 | /** |
||
| 47 | * Returns the lines where warnings should occur. |
||
| 48 | * |
||
| 49 | * The key of the array should represent the line number and the value |
||
| 50 | * should represent the number of warnings that should occur on that line. |
||
| 51 | * |
||
| 52 | * @param string $testFile Name of the file with test data. |
||
| 53 | * |
||
| 54 | * @return array(int => int) |
||
| 55 | */ |
||
| 56 | public function getWarningList($testFile) |
||
| 61 | |||
| 62 | |||
| 63 | }//end class |
||
| 64 |
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider.