Failed Conditions
Push — master ( 0d82de...180230 )
by Alexander
02:11
created

ValidClassNameUnitTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 41
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getErrorList() 0 8 1
A getWarningList() 0 5 1
1
<?php
2
/**
3
 * CodingStandard_Tests_NamingConventions_ValidClassNameUnitTest.
4
 *
5
 * PHP version 5
6
 *
7
 * @category PHP
8
 * @package  PHP_CodeSniffer
9
 * @author   Alexander Obuhovich <[email protected]>
10
 * @license  https://github.com/aik099/CodingStandard/blob/master/LICENSE BSD 3-Clause
11
 * @link     https://github.com/aik099/CodingStandard
12
 */
13
14
/**
15
 * Unit test class for the ValidClassName sniff.
16
 *
17
 * @category PHP
18
 * @package  PHP_CodeSniffer
19
 * @author   Alexander Obuhovich <[email protected]>
20
 * @license  https://github.com/aik099/CodingStandard/blob/master/LICENSE BSD 3-Clause
21
 * @link     https://github.com/aik099/CodingStandard
22
 */
23
class CodingStandard_Tests_NamingConventions_ValidClassNameUnitTest extends AbstractSniffUnitTest
0 ignored issues
show
Coding Style introduced by
This class is not in CamelCase format.

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.

Loading history...
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)
37
    {
38
        return array(
39
                12 => 1,
40
                17 => 1,
41
               );
42
43
    }//end getErrorList()
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)
57
    {
58
        return array();
59
60
    }//end getWarningList()
61
62
63
}//end class
64