@@ -88,80 +88,80 @@ discard block |
||
88 | 88 | array( |
89 | 89 | 'blacklist' => |
90 | 90 | array( |
91 | - 'include' => |
|
92 | - array( |
|
91 | + 'include' => |
|
92 | + array( |
|
93 | 93 | 'directory' => |
94 | 94 | array( |
95 | - 0 => |
|
96 | - array( |
|
95 | + 0 => |
|
96 | + array( |
|
97 | 97 | 'path' => '/path/to/files', |
98 | 98 | 'prefix' => '', |
99 | 99 | 'suffix' => '.php', |
100 | 100 | 'group' => 'DEFAULT' |
101 | - ), |
|
101 | + ), |
|
102 | 102 | ), |
103 | 103 | 'file' => |
104 | 104 | array( |
105 | - 0 => '/path/to/file', |
|
106 | - 1 => '/path/to/file', |
|
105 | + 0 => '/path/to/file', |
|
106 | + 1 => '/path/to/file', |
|
107 | + ), |
|
107 | 108 | ), |
108 | - ), |
|
109 | - 'exclude' => |
|
110 | - array( |
|
109 | + 'exclude' => |
|
110 | + array( |
|
111 | 111 | 'directory' => |
112 | 112 | array( |
113 | - 0 => |
|
114 | - array( |
|
113 | + 0 => |
|
114 | + array( |
|
115 | 115 | 'path' => '/path/to/files', |
116 | 116 | 'prefix' => '', |
117 | 117 | 'suffix' => '.php', |
118 | 118 | 'group' => 'DEFAULT' |
119 | - ), |
|
119 | + ), |
|
120 | 120 | ), |
121 | 121 | 'file' => |
122 | 122 | array( |
123 | - 0 => '/path/to/file', |
|
123 | + 0 => '/path/to/file', |
|
124 | + ), |
|
124 | 125 | ), |
125 | - ), |
|
126 | 126 | ), |
127 | 127 | 'whitelist' => |
128 | 128 | array( |
129 | - 'addUncoveredFilesFromWhitelist' => true, |
|
130 | - 'processUncoveredFilesFromWhitelist' => false, |
|
131 | - 'include' => |
|
132 | - array( |
|
129 | + 'addUncoveredFilesFromWhitelist' => true, |
|
130 | + 'processUncoveredFilesFromWhitelist' => false, |
|
131 | + 'include' => |
|
132 | + array( |
|
133 | 133 | 'directory' => |
134 | 134 | array( |
135 | - 0 => |
|
136 | - array( |
|
135 | + 0 => |
|
136 | + array( |
|
137 | 137 | 'path' => '/path/to/files', |
138 | 138 | 'prefix' => '', |
139 | 139 | 'suffix' => '.php', |
140 | 140 | 'group' => 'DEFAULT' |
141 | - ), |
|
141 | + ), |
|
142 | 142 | ), |
143 | 143 | 'file' => |
144 | 144 | array( |
145 | - 0 => '/path/to/file', |
|
145 | + 0 => '/path/to/file', |
|
146 | + ), |
|
146 | 147 | ), |
147 | - ), |
|
148 | - 'exclude' => |
|
149 | - array( |
|
148 | + 'exclude' => |
|
149 | + array( |
|
150 | 150 | 'directory' => |
151 | 151 | array( |
152 | - 0 => |
|
153 | - array( |
|
152 | + 0 => |
|
153 | + array( |
|
154 | 154 | 'path' => '/path/to/files', |
155 | 155 | 'prefix' => '', |
156 | 156 | 'suffix' => '.php', |
157 | 157 | 'group' => 'DEFAULT' |
158 | - ), |
|
158 | + ), |
|
159 | 159 | ), |
160 | 160 | 'file' => |
161 | 161 | array( |
162 | - 0 => '/path/to/file', |
|
162 | + 0 => '/path/to/file', |
|
163 | + ), |
|
163 | 164 | ), |
164 | - ), |
|
165 | 165 | ), |
166 | 166 | ), |
167 | 167 | $this->configuration->getFilterConfiguration() |
@@ -177,11 +177,11 @@ discard block |
||
177 | 177 | array( |
178 | 178 | 'include' => |
179 | 179 | array( |
180 | - 0 => 'name', |
|
180 | + 0 => 'name', |
|
181 | 181 | ), |
182 | 182 | 'exclude' => |
183 | 183 | array( |
184 | - 0 => 'name', |
|
184 | + 0 => 'name', |
|
185 | 185 | ), |
186 | 186 | ), |
187 | 187 | $this->configuration->getGroupConfiguration() |
@@ -202,13 +202,13 @@ discard block |
||
202 | 202 | array( |
203 | 203 | 0 => |
204 | 204 | array( |
205 | - 'class' => 'MyListener', |
|
206 | - 'file' => '/optional/path/to/MyListener.php', |
|
207 | - 'arguments' => |
|
208 | - array( |
|
205 | + 'class' => 'MyListener', |
|
206 | + 'file' => '/optional/path/to/MyListener.php', |
|
207 | + 'arguments' => |
|
208 | + array( |
|
209 | 209 | 0 => |
210 | 210 | array( |
211 | - 0 => 'Sebastian', |
|
211 | + 0 => 'Sebastian', |
|
212 | 212 | ), |
213 | 213 | 1 => 22, |
214 | 214 | 2 => 'April', |
@@ -217,20 +217,20 @@ discard block |
||
217 | 217 | 5 => new stdClass, |
218 | 218 | 6 => dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'MyTestFile.php', |
219 | 219 | 7 => dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'MyRelativePath', |
220 | - ), |
|
220 | + ), |
|
221 | 221 | ), |
222 | 222 | array( |
223 | - 'class' => 'IncludePathListener', |
|
224 | - 'file' => __FILE__, |
|
225 | - 'arguments' => array() |
|
223 | + 'class' => 'IncludePathListener', |
|
224 | + 'file' => __FILE__, |
|
225 | + 'arguments' => array() |
|
226 | 226 | ), |
227 | 227 | array( |
228 | - 'class' => 'CompactArgumentsListener', |
|
229 | - 'file' => '/CompactArgumentsListener.php', |
|
230 | - 'arguments' => |
|
231 | - array( |
|
228 | + 'class' => 'CompactArgumentsListener', |
|
229 | + 'file' => '/CompactArgumentsListener.php', |
|
230 | + 'arguments' => |
|
231 | + array( |
|
232 | 232 | 0 => 42 |
233 | - ), |
|
233 | + ), |
|
234 | 234 | ), |
235 | 235 | ), |
236 | 236 | $this->configuration->getListenerConfiguration() |
@@ -271,8 +271,8 @@ discard block |
||
271 | 271 | array( |
272 | 272 | 'include_path' => |
273 | 273 | array( |
274 | - dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . '.', |
|
275 | - '/path/to/lib' |
|
274 | + dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . '.', |
|
275 | + '/path/to/lib' |
|
276 | 276 | ), |
277 | 277 | 'ini' => array('foo' => 'bar'), |
278 | 278 | 'const' => array('FOO' => false, 'BAR' => true), |
@@ -386,11 +386,11 @@ discard block |
||
386 | 386 | array( |
387 | 387 | 0 => |
388 | 388 | array( |
389 | - 'name' => 'Firefox on Linux', |
|
390 | - 'browser' => '*firefox /usr/lib/firefox/firefox-bin', |
|
391 | - 'host' => 'my.linux.box', |
|
392 | - 'port' => 4444, |
|
393 | - 'timeout' => 30000, |
|
389 | + 'name' => 'Firefox on Linux', |
|
390 | + 'browser' => '*firefox /usr/lib/firefox/firefox-bin', |
|
391 | + 'host' => 'my.linux.box', |
|
392 | + 'port' => 4444, |
|
393 | + 'timeout' => 30000, |
|
394 | 394 | ), |
395 | 395 | ), |
396 | 396 | $this->configuration->getSeleniumBrowserConfiguration() |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function testShouldReadColorsWhenTrueInConfigurationfile() |
38 | 38 | { |
39 | - $configurationFilename = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.true.xml'; |
|
39 | + $configurationFilename = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.true.xml'; |
|
40 | 40 | $configurationInstance = PHPUnit_Util_Configuration::getInstance($configurationFilename); |
41 | 41 | $configurationValues = $configurationInstance->getPHPUnitConfiguration(); |
42 | 42 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function testShouldReadColorsWhenFalseInConfigurationfile() |
50 | 50 | { |
51 | - $configurationFilename = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.false.xml'; |
|
51 | + $configurationFilename = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.false.xml'; |
|
52 | 52 | $configurationInstance = PHPUnit_Util_Configuration::getInstance($configurationFilename); |
53 | 53 | $configurationValues = $configurationInstance->getPHPUnitConfiguration(); |
54 | 54 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public function testShouldReadColorsWhenEmptyInConfigurationfile() |
62 | 62 | { |
63 | - $configurationFilename = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.empty.xml'; |
|
63 | + $configurationFilename = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.empty.xml'; |
|
64 | 64 | $configurationInstance = PHPUnit_Util_Configuration::getInstance($configurationFilename); |
65 | 65 | $configurationValues = $configurationInstance->getPHPUnitConfiguration(); |
66 | 66 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public function testShouldReadColorsWhenInvalidInConfigurationfile() |
74 | 74 | { |
75 | - $configurationFilename = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.invalid.xml'; |
|
75 | + $configurationFilename = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.invalid.xml'; |
|
76 | 76 | $configurationInstance = PHPUnit_Util_Configuration::getInstance($configurationFilename); |
77 | 77 | $configurationValues = $configurationInstance->getPHPUnitConfiguration(); |
78 | 78 |
@@ -16,19 +16,19 @@ |
||
16 | 16 | public function validRegexpProvider() |
17 | 17 | { |
18 | 18 | return array( |
19 | - array('#valid regexp#', 'valid regexp', 1), |
|
20 | - array(';val.*xp;', 'valid regexp', 1), |
|
21 | - array('/val.*xp/i', 'VALID REGEXP', 1), |
|
22 | - array('/a val.*p/','valid regexp', 0), |
|
19 | + array('#valid regexp#', 'valid regexp', 1), |
|
20 | + array(';val.*xp;', 'valid regexp', 1), |
|
21 | + array('/val.*xp/i', 'VALID REGEXP', 1), |
|
22 | + array('/a val.*p/','valid regexp', 0), |
|
23 | 23 | ); |
24 | 24 | } |
25 | 25 | |
26 | 26 | public function invalidRegexpProvider() |
27 | 27 | { |
28 | 28 | return array( |
29 | - array('valid regexp', 'valid regexp'), |
|
30 | - array(';val.*xp', 'valid regexp'), |
|
31 | - array('val.*xp/i', 'VALID REGEXP'), |
|
29 | + array('valid regexp', 'valid regexp'), |
|
30 | + array(';val.*xp', 'valid regexp'), |
|
31 | + array('val.*xp/i', 'VALID REGEXP'), |
|
32 | 32 | ); |
33 | 33 | } |
34 | 34 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | array('#valid regexp#', 'valid regexp', 1), |
20 | 20 | array(';val.*xp;', 'valid regexp', 1), |
21 | 21 | array('/val.*xp/i', 'VALID REGEXP', 1), |
22 | - array('/a val.*p/','valid regexp', 0), |
|
22 | + array('/a val.*p/', 'valid regexp', 0), |
|
23 | 23 | ); |
24 | 24 | } |
25 | 25 |
@@ -32,69 +32,69 @@ discard block |
||
32 | 32 | public function testGetExpectedException() |
33 | 33 | { |
34 | 34 | $this->assertArraySubset( |
35 | - array('class' => 'FooBarBaz', 'code' => null, 'message' => ''), |
|
36 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testOne') |
|
35 | + array('class' => 'FooBarBaz', 'code' => null, 'message' => ''), |
|
36 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testOne') |
|
37 | 37 | ); |
38 | 38 | |
39 | 39 | $this->assertArraySubset( |
40 | - array('class' => 'Foo_Bar_Baz', 'code' => null, 'message' => ''), |
|
41 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testTwo') |
|
40 | + array('class' => 'Foo_Bar_Baz', 'code' => null, 'message' => ''), |
|
41 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testTwo') |
|
42 | 42 | ); |
43 | 43 | |
44 | 44 | $this->assertArraySubset( |
45 | - array('class' => 'Foo\Bar\Baz', 'code' => null, 'message' => ''), |
|
46 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testThree') |
|
45 | + array('class' => 'Foo\Bar\Baz', 'code' => null, 'message' => ''), |
|
46 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testThree') |
|
47 | 47 | ); |
48 | 48 | |
49 | 49 | $this->assertArraySubset( |
50 | - array('class' => 'ほげ', 'code' => null, 'message' => ''), |
|
51 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testFour') |
|
50 | + array('class' => 'ほげ', 'code' => null, 'message' => ''), |
|
51 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testFour') |
|
52 | 52 | ); |
53 | 53 | |
54 | 54 | $this->assertArraySubset( |
55 | - array('class' => 'Class', 'code' => 1234, 'message' => 'Message'), |
|
56 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testFive') |
|
55 | + array('class' => 'Class', 'code' => 1234, 'message' => 'Message'), |
|
56 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testFive') |
|
57 | 57 | ); |
58 | 58 | |
59 | 59 | $this->assertArraySubset( |
60 | - array('class' => 'Class', 'code' => 1234, 'message' => 'Message'), |
|
61 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testSix') |
|
60 | + array('class' => 'Class', 'code' => 1234, 'message' => 'Message'), |
|
61 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testSix') |
|
62 | 62 | ); |
63 | 63 | |
64 | 64 | $this->assertArraySubset( |
65 | - array('class' => 'Class', 'code' => 'ExceptionCode', 'message' => 'Message'), |
|
66 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testSeven') |
|
65 | + array('class' => 'Class', 'code' => 'ExceptionCode', 'message' => 'Message'), |
|
66 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testSeven') |
|
67 | 67 | ); |
68 | 68 | |
69 | 69 | $this->assertArraySubset( |
70 | - array('class' => 'Class', 'code' => 0, 'message' => 'Message'), |
|
71 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testEight') |
|
70 | + array('class' => 'Class', 'code' => 0, 'message' => 'Message'), |
|
71 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testEight') |
|
72 | 72 | ); |
73 | 73 | |
74 | 74 | $this->assertArraySubset( |
75 | - array('class' => 'Class', 'code' => ExceptionTest::ERROR_CODE, 'message' => ExceptionTest::ERROR_MESSAGE), |
|
76 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testNine') |
|
75 | + array('class' => 'Class', 'code' => ExceptionTest::ERROR_CODE, 'message' => ExceptionTest::ERROR_MESSAGE), |
|
76 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testNine') |
|
77 | 77 | ); |
78 | 78 | |
79 | 79 | $this->assertArraySubset( |
80 | - array('class' => 'Class', 'code' => null, 'message' => ''), |
|
81 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testSingleLine') |
|
80 | + array('class' => 'Class', 'code' => null, 'message' => ''), |
|
81 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testSingleLine') |
|
82 | 82 | ); |
83 | 83 | |
84 | 84 | $this->assertArraySubset( |
85 | - array('class' => 'Class', 'code' => My\Space\ExceptionNamespaceTest::ERROR_CODE, 'message' => My\Space\ExceptionNamespaceTest::ERROR_MESSAGE), |
|
86 | - PHPUnit_Util_Test::getExpectedException('My\Space\ExceptionNamespaceTest', 'testConstants') |
|
85 | + array('class' => 'Class', 'code' => My\Space\ExceptionNamespaceTest::ERROR_CODE, 'message' => My\Space\ExceptionNamespaceTest::ERROR_MESSAGE), |
|
86 | + PHPUnit_Util_Test::getExpectedException('My\Space\ExceptionNamespaceTest', 'testConstants') |
|
87 | 87 | ); |
88 | 88 | |
89 | 89 | // Ensure the Class::CONST expression is only evaluated when the constant really exists |
90 | 90 | $this->assertArraySubset( |
91 | - array('class' => 'Class', 'code' => 'ExceptionTest::UNKNOWN_CODE_CONSTANT', 'message' => 'ExceptionTest::UNKNOWN_MESSAGE_CONSTANT'), |
|
92 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testUnknownConstants') |
|
91 | + array('class' => 'Class', 'code' => 'ExceptionTest::UNKNOWN_CODE_CONSTANT', 'message' => 'ExceptionTest::UNKNOWN_MESSAGE_CONSTANT'), |
|
92 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testUnknownConstants') |
|
93 | 93 | ); |
94 | 94 | |
95 | 95 | $this->assertArraySubset( |
96 | - array('class' => 'Class', 'code' => 'My\Space\ExceptionNamespaceTest::UNKNOWN_CODE_CONSTANT', 'message' => 'My\Space\ExceptionNamespaceTest::UNKNOWN_MESSAGE_CONSTANT'), |
|
97 | - PHPUnit_Util_Test::getExpectedException('My\Space\ExceptionNamespaceTest', 'testUnknownConstants') |
|
96 | + array('class' => 'Class', 'code' => 'My\Space\ExceptionNamespaceTest::UNKNOWN_CODE_CONSTANT', 'message' => 'My\Space\ExceptionNamespaceTest::UNKNOWN_MESSAGE_CONSTANT'), |
|
97 | + PHPUnit_Util_Test::getExpectedException('My\Space\ExceptionNamespaceTest', 'testUnknownConstants') |
|
98 | 98 | ); |
99 | 99 | } |
100 | 100 | |
@@ -104,18 +104,18 @@ discard block |
||
104 | 104 | public function testGetExpectedRegExp() |
105 | 105 | { |
106 | 106 | $this->assertArraySubset( |
107 | - array('message_regex' => '#regex#'), |
|
108 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testWithRegexMessage') |
|
107 | + array('message_regex' => '#regex#'), |
|
108 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testWithRegexMessage') |
|
109 | 109 | ); |
110 | 110 | |
111 | 111 | $this->assertArraySubset( |
112 | - array('message_regex' => '#regex#'), |
|
113 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testWithRegexMessageFromClassConstant') |
|
112 | + array('message_regex' => '#regex#'), |
|
113 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testWithRegexMessageFromClassConstant') |
|
114 | 114 | ); |
115 | 115 | |
116 | 116 | $this->assertArraySubset( |
117 | - array('message_regex' => 'ExceptionTest::UNKNOWN_MESSAGE_REGEX_CONSTANT'), |
|
118 | - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testWithUnknowRegexMessageFromClassConstant') |
|
117 | + array('message_regex' => 'ExceptionTest::UNKNOWN_MESSAGE_REGEX_CONSTANT'), |
|
118 | + PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testWithUnknowRegexMessageFromClassConstant') |
|
119 | 119 | ); |
120 | 120 | } |
121 | 121 | |
@@ -146,27 +146,27 @@ discard block |
||
146 | 146 | array('testTen', array('extensions' => array('testExt'))), |
147 | 147 | array('testEleven', array('OS' => '/Linux/i')), |
148 | 148 | array( |
149 | - 'testSpace', |
|
150 | - array( |
|
149 | + 'testSpace', |
|
150 | + array( |
|
151 | 151 | 'extensions' => array('spl'), |
152 | 152 | 'OS' => '/.*/i' |
153 | - ) |
|
153 | + ) |
|
154 | 154 | ), |
155 | 155 | array( |
156 | - 'testAllPossibleRequirements', |
|
157 | - array( |
|
156 | + 'testAllPossibleRequirements', |
|
157 | + array( |
|
158 | 158 | 'PHP' => '99-dev', |
159 | 159 | 'PHPUnit' => '9-dev', |
160 | 160 | 'OS' => '/DOESNOTEXIST/i', |
161 | 161 | 'functions' => array( |
162 | - 'testFuncOne', |
|
163 | - 'testFuncTwo', |
|
162 | + 'testFuncOne', |
|
163 | + 'testFuncTwo', |
|
164 | 164 | ), |
165 | 165 | 'extensions' => array( |
166 | - 'testExtOne', |
|
167 | - 'testExtTwo', |
|
166 | + 'testExtOne', |
|
167 | + 'testExtTwo', |
|
168 | + ) |
|
168 | 169 | ) |
169 | - ) |
|
170 | 170 | ) |
171 | 171 | ); |
172 | 172 | } |
@@ -181,12 +181,12 @@ discard block |
||
181 | 181 | 'PHPUnit' => '3.7', |
182 | 182 | 'OS' => '/WINNT/i', |
183 | 183 | 'functions' => array( |
184 | - 'testFuncClass', |
|
185 | - 'testFuncMethod', |
|
184 | + 'testFuncClass', |
|
185 | + 'testFuncMethod', |
|
186 | 186 | ), |
187 | 187 | 'extensions' => array( |
188 | - 'testExtClass', |
|
189 | - 'testExtMethod', |
|
188 | + 'testExtClass', |
|
189 | + 'testExtMethod', |
|
190 | 190 | ) |
191 | 191 | ); |
192 | 192 | |
@@ -218,13 +218,13 @@ discard block |
||
218 | 218 | array('testAlwaysSkip2', array('PHP 9999999 (or later) is required.')), |
219 | 219 | array('testAlwaysSkip3', array('Operating system matching /DOESNOTEXIST/i is required.')), |
220 | 220 | array('testAllPossibleRequirements', array( |
221 | - 'PHP 99-dev (or later) is required.', |
|
222 | - 'PHPUnit 9-dev (or later) is required.', |
|
223 | - 'Operating system matching /DOESNOTEXIST/i is required.', |
|
224 | - 'Function testFuncOne is required.', |
|
225 | - 'Function testFuncTwo is required.', |
|
226 | - 'Extension testExtOne is required.', |
|
227 | - 'Extension testExtTwo is required.', |
|
221 | + 'PHP 99-dev (or later) is required.', |
|
222 | + 'PHPUnit 9-dev (or later) is required.', |
|
223 | + 'Operating system matching /DOESNOTEXIST/i is required.', |
|
224 | + 'Function testFuncOne is required.', |
|
225 | + 'Function testFuncTwo is required.', |
|
226 | + 'Extension testExtOne is required.', |
|
227 | + 'Extension testExtTwo is required.', |
|
228 | 228 | )), |
229 | 229 | ); |
230 | 230 | } |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | { |
404 | 404 | if (strpos($test, 'Namespace') === 0) { |
405 | 405 | $expected = array( |
406 | - TEST_FILES_PATH . 'NamespaceCoveredClass.php' => $lines |
|
406 | + TEST_FILES_PATH . 'NamespaceCoveredClass.php' => $lines |
|
407 | 407 | ); |
408 | 408 | } elseif ($test === 'CoverageNoneTest') { |
409 | 409 | $expected = array(); |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | $expected = false; |
412 | 412 | } elseif ($test === 'CoverageFunctionTest') { |
413 | 413 | $expected = array( |
414 | - TEST_FILES_PATH . 'CoveredFunction.php' => $lines |
|
414 | + TEST_FILES_PATH . 'CoveredFunction.php' => $lines |
|
415 | 415 | ); |
416 | 416 | } else { |
417 | 417 | $expected = array(TEST_FILES_PATH . 'CoveredClass.php' => $lines); |
@@ -572,102 +572,102 @@ discard block |
||
572 | 572 | public function getLinesToBeCoveredProvider() |
573 | 573 | { |
574 | 574 | return array( |
575 | - array( |
|
575 | + array( |
|
576 | 576 | 'CoverageNoneTest', |
577 | 577 | array() |
578 | - ), |
|
579 | - array( |
|
578 | + ), |
|
579 | + array( |
|
580 | 580 | 'CoverageClassExtendedTest', |
581 | 581 | array_merge(range(19, 36), range(2, 17)) |
582 | - ), |
|
583 | - array( |
|
582 | + ), |
|
583 | + array( |
|
584 | 584 | 'CoverageClassTest', |
585 | 585 | range(19, 36) |
586 | - ), |
|
587 | - array( |
|
586 | + ), |
|
587 | + array( |
|
588 | 588 | 'CoverageMethodTest', |
589 | 589 | range(31, 35) |
590 | - ), |
|
591 | - array( |
|
590 | + ), |
|
591 | + array( |
|
592 | 592 | 'CoverageMethodOneLineAnnotationTest', |
593 | 593 | range(31, 35) |
594 | - ), |
|
595 | - array( |
|
594 | + ), |
|
595 | + array( |
|
596 | 596 | 'CoverageNotPrivateTest', |
597 | 597 | array_merge(range(25, 29), range(31, 35)) |
598 | - ), |
|
599 | - array( |
|
598 | + ), |
|
599 | + array( |
|
600 | 600 | 'CoverageNotProtectedTest', |
601 | 601 | array_merge(range(21, 23), range(31, 35)) |
602 | - ), |
|
603 | - array( |
|
602 | + ), |
|
603 | + array( |
|
604 | 604 | 'CoverageNotPublicTest', |
605 | 605 | array_merge(range(21, 23), range(25, 29)) |
606 | - ), |
|
607 | - array( |
|
606 | + ), |
|
607 | + array( |
|
608 | 608 | 'CoveragePrivateTest', |
609 | 609 | range(21, 23) |
610 | - ), |
|
611 | - array( |
|
610 | + ), |
|
611 | + array( |
|
612 | 612 | 'CoverageProtectedTest', |
613 | 613 | range(25, 29) |
614 | - ), |
|
615 | - array( |
|
614 | + ), |
|
615 | + array( |
|
616 | 616 | 'CoveragePublicTest', |
617 | 617 | range(31, 35) |
618 | - ), |
|
619 | - array( |
|
618 | + ), |
|
619 | + array( |
|
620 | 620 | 'CoverageFunctionTest', |
621 | 621 | range(2, 4) |
622 | - ), |
|
623 | - array( |
|
622 | + ), |
|
623 | + array( |
|
624 | 624 | 'NamespaceCoverageClassExtendedTest', |
625 | 625 | array_merge(range(21, 38), range(4, 19)) |
626 | - ), |
|
627 | - array( |
|
626 | + ), |
|
627 | + array( |
|
628 | 628 | 'NamespaceCoverageClassTest', |
629 | 629 | range(21, 38) |
630 | - ), |
|
631 | - array( |
|
630 | + ), |
|
631 | + array( |
|
632 | 632 | 'NamespaceCoverageMethodTest', |
633 | 633 | range(33, 37) |
634 | - ), |
|
635 | - array( |
|
634 | + ), |
|
635 | + array( |
|
636 | 636 | 'NamespaceCoverageNotPrivateTest', |
637 | 637 | array_merge(range(27, 31), range(33, 37)) |
638 | - ), |
|
639 | - array( |
|
638 | + ), |
|
639 | + array( |
|
640 | 640 | 'NamespaceCoverageNotProtectedTest', |
641 | 641 | array_merge(range(23, 25), range(33, 37)) |
642 | - ), |
|
643 | - array( |
|
642 | + ), |
|
643 | + array( |
|
644 | 644 | 'NamespaceCoverageNotPublicTest', |
645 | 645 | array_merge(range(23, 25), range(27, 31)) |
646 | - ), |
|
647 | - array( |
|
646 | + ), |
|
647 | + array( |
|
648 | 648 | 'NamespaceCoveragePrivateTest', |
649 | 649 | range(23, 25) |
650 | - ), |
|
651 | - array( |
|
650 | + ), |
|
651 | + array( |
|
652 | 652 | 'NamespaceCoverageProtectedTest', |
653 | 653 | range(27, 31) |
654 | - ), |
|
655 | - array( |
|
654 | + ), |
|
655 | + array( |
|
656 | 656 | 'NamespaceCoveragePublicTest', |
657 | 657 | range(33, 37) |
658 | - ), |
|
659 | - array( |
|
658 | + ), |
|
659 | + array( |
|
660 | 660 | 'NamespaceCoverageCoversClassTest', |
661 | 661 | array_merge(range(23, 25), range(27, 31), range(33, 37), range(6, 8), range(10, 13), range(15, 18)) |
662 | - ), |
|
663 | - array( |
|
662 | + ), |
|
663 | + array( |
|
664 | 664 | 'NamespaceCoverageCoversClassPublicTest', |
665 | 665 | range(33, 37) |
666 | - ), |
|
667 | - array( |
|
666 | + ), |
|
667 | + array( |
|
668 | 668 | 'CoverageNothingTest', |
669 | 669 | false |
670 | - ) |
|
670 | + ) |
|
671 | 671 | ); |
672 | 672 | } |
673 | 673 | } |
@@ -134,16 +134,16 @@ discard block |
||
134 | 134 | public function requirementsProvider() |
135 | 135 | { |
136 | 136 | return array( |
137 | - array('testOne', array()), |
|
138 | - array('testTwo', array('PHPUnit' => '1.0')), |
|
139 | - array('testThree', array('PHP' => '2.0')), |
|
140 | - array('testFour', array('PHPUnit' => '2.0', 'PHP' => '1.0')), |
|
141 | - array('testFive', array('PHP' => '5.4.0RC6')), |
|
142 | - array('testSix', array('PHP' => '5.4.0-alpha1')), |
|
143 | - array('testSeven', array('PHP' => '5.4.0beta2')), |
|
144 | - array('testEight', array('PHP' => '5.4-dev')), |
|
145 | - array('testNine', array('functions' => array('testFunc'))), |
|
146 | - array('testTen', array('extensions' => array('testExt'))), |
|
137 | + array('testOne', array()), |
|
138 | + array('testTwo', array('PHPUnit' => '1.0')), |
|
139 | + array('testThree', array('PHP' => '2.0')), |
|
140 | + array('testFour', array('PHPUnit' => '2.0', 'PHP' => '1.0')), |
|
141 | + array('testFive', array('PHP' => '5.4.0RC6')), |
|
142 | + array('testSix', array('PHP' => '5.4.0-alpha1')), |
|
143 | + array('testSeven', array('PHP' => '5.4.0beta2')), |
|
144 | + array('testEight', array('PHP' => '5.4-dev')), |
|
145 | + array('testNine', array('functions' => array('testFunc'))), |
|
146 | + array('testTen', array('extensions' => array('testExt'))), |
|
147 | 147 | array('testEleven', array('OS' => '/Linux/i')), |
148 | 148 | array( |
149 | 149 | 'testSpace', |
@@ -211,12 +211,12 @@ discard block |
||
211 | 211 | public function missingRequirementsProvider() |
212 | 212 | { |
213 | 213 | return array( |
214 | - array('testOne', array()), |
|
215 | - array('testNine', array('Function testFunc is required.')), |
|
216 | - array('testTen', array('Extension testExt is required.')), |
|
217 | - array('testAlwaysSkip', array('PHPUnit 1111111 (or later) is required.')), |
|
218 | - array('testAlwaysSkip2', array('PHP 9999999 (or later) is required.')), |
|
219 | - array('testAlwaysSkip3', array('Operating system matching /DOESNOTEXIST/i is required.')), |
|
214 | + array('testOne', array()), |
|
215 | + array('testNine', array('Function testFunc is required.')), |
|
216 | + array('testTen', array('Extension testExt is required.')), |
|
217 | + array('testAlwaysSkip', array('PHPUnit 1111111 (or later) is required.')), |
|
218 | + array('testAlwaysSkip2', array('PHP 9999999 (or later) is required.')), |
|
219 | + array('testAlwaysSkip3', array('Operating system matching /DOESNOTEXIST/i is required.')), |
|
220 | 220 | array('testAllPossibleRequirements', array( |
221 | 221 | 'PHP 99-dev (or later) is required.', |
222 | 222 | 'PHPUnit 9-dev (or later) is required.', |
@@ -85,14 +85,14 @@ discard block |
||
85 | 85 | $selector = 'div#folder.open a[href="http://www.xerox.com"][title="xerox"].selected.big > span + h1'; |
86 | 86 | $converted = PHPUnit_Util_XML::convertSelectToTag($selector); |
87 | 87 | $tag = array('tag' => 'div', |
88 | - 'id' => 'folder', |
|
89 | - 'class' => 'open', |
|
90 | - 'descendant' => array('tag' => 'a', |
|
91 | - 'class' => 'selected big', |
|
92 | - 'attributes' => array('href' => 'http://www.xerox.com', |
|
93 | - 'title' => 'xerox'), |
|
94 | - 'child' => array('tag' => 'span', |
|
95 | - 'adjacent-sibling' => array('tag' => 'h1')))); |
|
88 | + 'id' => 'folder', |
|
89 | + 'class' => 'open', |
|
90 | + 'descendant' => array('tag' => 'a', |
|
91 | + 'class' => 'selected big', |
|
92 | + 'attributes' => array('href' => 'http://www.xerox.com', |
|
93 | + 'title' => 'xerox'), |
|
94 | + 'child' => array('tag' => 'span', |
|
95 | + 'adjacent-sibling' => array('tag' => 'h1')))); |
|
96 | 96 | $this->assertEquals($tag, $converted); |
97 | 97 | } |
98 | 98 | |
@@ -137,8 +137,8 @@ discard block |
||
137 | 137 | $selector = '[foo="bar baz"] div[value="foo bar"]'; |
138 | 138 | $converted = PHPUnit_Util_XML::convertSelectToTag($selector); |
139 | 139 | $tag = array('attributes' => array('foo' => 'bar baz'), |
140 | - 'descendant' => array('tag' => 'div', |
|
141 | - 'attributes' => array('value' => 'foo bar'))); |
|
140 | + 'descendant' => array('tag' => 'div', |
|
141 | + 'attributes' => array('value' => 'foo bar'))); |
|
142 | 142 | $this->assertEquals($tag, $converted); |
143 | 143 | } |
144 | 144 | |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | $selector = '[foo="bar baz"] div[value="foo bar baz"]'; |
148 | 148 | $converted = PHPUnit_Util_XML::convertSelectToTag($selector); |
149 | 149 | $tag = array('attributes' => array('foo' => 'bar baz'), |
150 | - 'descendant' => array('tag' => 'div', |
|
150 | + 'descendant' => array('tag' => 'div', |
|
151 | 151 | 'attributes' => array('value' => 'foo bar baz'))); |
152 | 152 | $this->assertEquals($tag, $converted); |
153 | 153 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $obj2 = new \stdClass(); |
15 | 15 | $obj2->foo = 'bar'; |
16 | 16 | |
17 | - $obj3 = (object) array(1,2,"Test\r\n",4,5,6,7,8); |
|
17 | + $obj3 = (object) array(1, 2, "Test\r\n", 4, 5, 6, 7, 8); |
|
18 | 18 | |
19 | 19 | $obj = new \stdClass(); |
20 | 20 | //@codingStandardsIgnoreStart |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | return array( |
38 | 38 | array(null, true, 1, 1.0), |
39 | 39 | array(1.2, fopen('php://memory', 'r'), '1'), |
40 | - array(array(array(1,2,3), array(3,4,5))), |
|
40 | + array(array(array(1, 2, 3), array(3, 4, 5))), |
|
41 | 41 | // \n\r and \r is converted to \n |
42 | 42 | array("this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext"), |
43 | 43 | array(new \stdClass(), $obj, array(), $storage, $obj3), |
@@ -12,10 +12,10 @@ discard block |
||
12 | 12 | public static function truthProvider() |
13 | 13 | { |
14 | 14 | return array( |
15 | - array(true), |
|
16 | - array(true), |
|
17 | - array(true), |
|
18 | - array(true) |
|
15 | + array(true), |
|
16 | + array(true), |
|
17 | + array(true), |
|
18 | + array(true) |
|
19 | 19 | ); |
20 | 20 | } |
21 | 21 | |
@@ -30,10 +30,10 @@ discard block |
||
30 | 30 | public static function falseProvider() |
31 | 31 | { |
32 | 32 | return array( |
33 | - 'false test' => array(false), |
|
34 | - 'false test 2' => array(false), |
|
35 | - 'other false test' => array(false), |
|
36 | - 'other false test2'=> array(false) |
|
33 | + 'false test' => array(false), |
|
34 | + 'false test 2' => array(false), |
|
35 | + 'other false test' => array(false), |
|
36 | + 'other false test2'=> array(false) |
|
37 | 37 | ); |
38 | 38 | } |
39 | 39 | } |
@@ -22,16 +22,16 @@ |
||
22 | 22 | $this->markTestSkipped('skipped'); |
23 | 23 | |
24 | 24 | return array( |
25 | - array(0, 0, 0), |
|
26 | - array(0, 1, 1), |
|
25 | + array(0, 0, 0), |
|
26 | + array(0, 1, 1), |
|
27 | 27 | ); |
28 | 28 | } |
29 | 29 | |
30 | 30 | public static function providerMethod() |
31 | 31 | { |
32 | 32 | return array( |
33 | - array(0, 0, 0), |
|
34 | - array(0, 1, 1), |
|
33 | + array(0, 0, 0), |
|
34 | + array(0, 1, 1), |
|
35 | 35 | ); |
36 | 36 | } |
37 | 37 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @coversDefaultClass \Foo\CoveredClass |
|
4 | - */ |
|
3 | + * @coversDefaultClass \Foo\CoveredClass |
|
4 | + */ |
|
5 | 5 | class NamespaceCoverageCoversClassTest extends PHPUnit_Framework_TestCase |
6 | 6 | { |
7 | 7 | /** |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Sample class that implements ArrayAccess copied from |
|
4 | - * http://www.php.net/manual/en/class.arrayaccess.php |
|
5 | - * with some minor changes |
|
6 | - * This class required for PHPUnit_Framework_Constraint_ArrayHasKey testing |
|
7 | - */ |
|
3 | + * Sample class that implements ArrayAccess copied from |
|
4 | + * http://www.php.net/manual/en/class.arrayaccess.php |
|
5 | + * with some minor changes |
|
6 | + * This class required for PHPUnit_Framework_Constraint_ArrayHasKey testing |
|
7 | + */ |
|
8 | 8 | class SampleArrayAccess implements ArrayAccess |
9 | 9 | { |
10 | 10 | private $container; |