~ubuntu-branches/ubuntu/utopic/php-codesniffer/utopic-proposed

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.3.4/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.inc

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2012-05-31 16:37:24 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120531163724-u6aiaubu8ks5dh5z
Tags: 1.3.4-0.1
* Non-maintainer upload.
* New upstream release (Closes: #599617, #634825).
* Swtiched debian/copyright to format 1.0 (rewrite was needed anyway, as the
upstream license changed).
* Switched package to pkg-php-tools and debhelper 8 sequencer.
* Now running unit tests at build time (so depends on phpunit (>= 3.6)).
* Section is now PHP.
* Added missing Build-Depends-Indep: php-pear.
* Added missing ${misc:Depends}.
* Added Vcs fields.
* Added homepage field.
* Reviewed short and long description.
* Added dependency on php-timer.
* Standards-Version: is now 3.9.3 (lots of changes, see above...).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
abstract class My_Class {
 
4
 
 
5
    public function __construct() {}
 
6
    public function My_Class() {}
 
7
    public function _My_Class() {}
 
8
 
 
9
    public function getSomeValue() {}
 
10
    public function parseMyDSN() {}
 
11
    public function get_some_value() {}
 
12
    public function GetSomeValue() {}
 
13
    public function getSomeValue_Again() {}
 
14
    public function My_Package_getSomeValue() {}
 
15
    public function _getSomeValue() {}
 
16
    public function _parseMyDSN() {}
 
17
    public function _get_some_value() {}
 
18
    public function _GetSomeValue() {}
 
19
    public function _getSomeValue_Again() {}
 
20
    public function _My_Package_getSomeValue() {}
 
21
 
 
22
    protected function getSomeValue() {}
 
23
    protected function parseMyDSN() {}
 
24
    protected function get_some_value() {}
 
25
    protected function GetSomeValue() {}
 
26
    protected function getSomeValue_Again() {}
 
27
    protected function My_Package_getSomeValue() {}
 
28
    protected function _getSomeValue() {}
 
29
    protected function _parseMyDSN() {}
 
30
    protected function _get_some_value() {}
 
31
    protected function _GetSomeValue() {}
 
32
    protected function _getSomeValue_Again() {}
 
33
    protected function _My_Package_getSomeValue() {}
 
34
 
 
35
    private function getSomeValue() {}
 
36
    private function parseMyDSN() {}
 
37
    private function get_some_value() {}
 
38
    private function GetSomeValue() {}
 
39
    private function getSomeValue_Again() {}
 
40
    private function My_Package_getSomeValue() {}
 
41
    private function _getSomeValue() {}
 
42
    private function _parseMyDSN() {}
 
43
    private function _get_some_value() {}
 
44
    private function _GetSomeValue() {}
 
45
    private function _getSomeValue_Again() {}
 
46
    private function _My_Package_getSomeValue() {}
 
47
 
 
48
    function getSomeValue() {}
 
49
    function parseMyDSN() {}
 
50
    function get_some_value() {}
 
51
    function GetSomeValue() {}
 
52
    function getSomeValue_Again() {}
 
53
    function My_Package_getSomeValue() {}
 
54
    function _getSomeValue() {}
 
55
    function _parseMyDSN() {}
 
56
    function _get_some_value() {}
 
57
    function _GetSomeValue() {}
 
58
    function _getSomeValue_Again() {}
 
59
    function _My_Package_getSomeValue() {}
 
60
 
 
61
}//end class
 
62
 
 
63
interface My_Interface {
 
64
 
 
65
    public function getSomeValue() {}
 
66
    public function parseMyDSN() {}
 
67
    public function get_some_value() {}
 
68
    public function GetSomeValue() {}
 
69
    public function getSomeValue_Again() {}
 
70
    public function My_Package_getSomeValue() {}
 
71
    public function _getSomeValue() {}
 
72
    public function _parseMyDSN() {}
 
73
    public function _get_some_value() {}
 
74
    public function _GetSomeValue() {}
 
75
    public function _getSomeValue_Again() {}
 
76
    public function _My_Package_getSomeValue() {}
 
77
 
 
78
    protected function getSomeValue() {}
 
79
    protected function parseMyDSN() {}
 
80
    protected function get_some_value() {}
 
81
    protected function GetSomeValue() {}
 
82
    protected function getSomeValue_Again() {}
 
83
    protected function My_Package_getSomeValue() {}
 
84
    protected function _getSomeValue() {}
 
85
    protected function _parseMyDSN() {}
 
86
    protected function _get_some_value() {}
 
87
    protected function _GetSomeValue() {}
 
88
    protected function _getSomeValue_Again() {}
 
89
    protected function _My_Package_getSomeValue() {}
 
90
 
 
91
    private function getSomeValue() {}
 
92
    private function parseMyDSN() {}
 
93
    private function get_some_value() {}
 
94
    private function GetSomeValue() {}
 
95
    private function getSomeValue_Again() {}
 
96
    private function My_Package_getSomeValue() {}
 
97
    private function _getSomeValue() {}
 
98
    private function _parseMyDSN() {}
 
99
    private function _get_some_value() {}
 
100
    private function _GetSomeValue() {}
 
101
    private function _getSomeValue_Again() {}
 
102
    private function _My_Package_getSomeValue() {}
 
103
 
 
104
    function getSomeValue() {}
 
105
    function parseMyDSN() {}
 
106
    function get_some_value() {}
 
107
    function GetSomeValue() {}
 
108
    function getSomeValue_Again() {}
 
109
    function My_Package_getSomeValue() {}
 
110
    function _getSomeValue() {}
 
111
    function _parseMyDSN() {}
 
112
    function _get_some_value() {}
 
113
    function _GetSomeValue() {}
 
114
    function _getSomeValue_Again() {}
 
115
    function _My_Package_getSomeValue() {}
 
116
 
 
117
}//end interface
 
118
 
 
119
function My_Package_getSomeValue() {}
 
120
function My_Package_parseMyDSN() {}
 
121
function My_Package_get_some_value() {}
 
122
function My_PackagegetSomeValue() {}
 
123
function My_Package_getSomeValue_Again() {}
 
124
function My_Package() {}
 
125
function _My_Package_getSomeValue() {}
 
126
function _My_Package_parseMyDSN() {}
 
127
function _My_Package_get_some_value() {}
 
128
function _My_PackagegetSomeValue() {}
 
129
function _My_Package_getSomeValue_Again() {}
 
130
function _My_Package() {}
 
131
 
 
132
 
 
133
/* Test for magic functions */
 
134
 
 
135
class Magic_Test {
 
136
    function __construct() {}
 
137
    function __destruct() {}
 
138
    function __call() {}
 
139
    function __callStatic() {}
 
140
    function __get() {}
 
141
    function __set() {}
 
142
    function __isset() {}
 
143
    function __unset() {}
 
144
    function __sleep() {}
 
145
    function __wakeup() {}
 
146
    function __toString() {}
 
147
    function __set_state() {}
 
148
    function __clone() {}
 
149
    function __autoload() {}
 
150
    function __invoke() {}
 
151
    function __myFunction() {}
 
152
    function __my_function() {}
 
153
}
 
154
 
 
155
function __construct() {}
 
156
function __destruct() {}
 
157
function __call() {}
 
158
function __callStatic() {}
 
159
function __get() {}
 
160
function __set() {}
 
161
function __isset() {}
 
162
function __unset() {}
 
163
function __sleep() {}
 
164
function __wakeup() {}
 
165
function __toString() {}
 
166
function __set_state() {}
 
167
function __clone() {}
 
168
function __autoload() {}
 
169
function __invoke() {}
 
170
function __myFunction() {}
 
171
function __my_function() {}
 
172
 
 
173
function my_package_function() {}
 
174
function Package_() {}
 
175
function Package() {}
 
176
 
 
177
class Closure_Test {
 
178
    function test() {
 
179
        $foo = function() { echo 'foo'; };
 
180
    }
 
181
}
 
182
 
 
183
function test() {
 
184
    $foo = function() { echo 'foo'; };
 
185
}
 
186
 
 
187
/* @codingStandardsIgnoreStart */
 
188
class MyClass
 
189
{
 
190
    /* @codingStandardsIgnoreEnd */
 
191
    public function __construct() {}
 
192
}
 
193
?>