@@ -119,34 +119,34 @@ public function testGetExpectedException()
119
119
);
120
120
121
121
$ this ->assertSame (
122
- array ('class ' => 'Class ' , 'code ' => My \Space \ExceptionNamespaceTest::ERROR_CODE , 'message ' => My \Space \ExceptionNamespaceTest::ERROR_MESSAGE , 'message_regex ' => '' ),
123
- PHPUnit_Util_Test::getExpectedException ('My\Space\ExceptionNamespaceTest ' , 'testConstants ' )
122
+ array ('class ' => 'Class ' , 'code ' => My \Space \ExceptionNamespaceTest::ERROR_CODE , 'message ' => My \Space \ExceptionNamespaceTest::ERROR_MESSAGE , 'message_regex ' => '' ),
123
+ PHPUnit_Util_Test::getExpectedException ('My\Space\ExceptionNamespaceTest ' , 'testConstants ' )
124
124
);
125
125
126
126
$ this ->assertSame (
127
- array ('class ' => 'Class ' , 'code ' => 1234 , 'message ' => 'Message ' , 'message_regex ' => '#regex# ' ),
128
- PHPUnit_Util_Test::getExpectedException ('ExceptionTest ' , 'testWithRegexMessage ' )
127
+ array ('class ' => 'Class ' , 'code ' => 1234 , 'message ' => 'Message ' , 'message_regex ' => '#regex# ' ),
128
+ PHPUnit_Util_Test::getExpectedException ('ExceptionTest ' , 'testWithRegexMessage ' )
129
129
);
130
130
131
131
$ this ->assertSame (
132
- array ('class ' => 'Class ' , 'code ' => 1234 , 'message ' => 'Message ' , 'message_regex ' => '#regex# ' ),
133
- PHPUnit_Util_Test::getExpectedException ('ExceptionTest ' , 'testWithRegexMessageFromClassConstant ' )
134
- );
132
+ array ('class ' => 'Class ' , 'code ' => 1234 , 'message ' => 'Message ' , 'message_regex ' => '#regex# ' ),
133
+ PHPUnit_Util_Test::getExpectedException ('ExceptionTest ' , 'testWithRegexMessageFromClassConstant ' )
134
+ );
135
135
136
136
$ this ->assertSame (
137
- array ('class ' => 'Class ' , 'code ' => 1234 , 'message ' => 'Message ' , 'message_regex ' => 'ExceptionTest::UNKNOWN_MESSAGE_REGEX_CONSTANT ' ),
138
- PHPUnit_Util_Test::getExpectedException ('ExceptionTest ' , 'testWithUnknowRegexMessageFromClassConstant ' )
139
- );
137
+ array ('class ' => 'Class ' , 'code ' => 1234 , 'message ' => 'Message ' , 'message_regex ' => 'ExceptionTest::UNKNOWN_MESSAGE_REGEX_CONSTANT ' ),
138
+ PHPUnit_Util_Test::getExpectedException ('ExceptionTest ' , 'testWithUnknowRegexMessageFromClassConstant ' )
139
+ );
140
140
141
141
// Ensure the Class::CONST expression is only evaluated when the constant really exists
142
142
$ this ->assertSame (
143
- array ('class ' => 'Class ' , 'code ' => 'ExceptionTest::UNKNOWN_CODE_CONSTANT ' , 'message ' => 'ExceptionTest::UNKNOWN_MESSAGE_CONSTANT ' , 'message_regex ' => '' ),
144
- PHPUnit_Util_Test::getExpectedException ('ExceptionTest ' , 'testUnknownConstants ' )
143
+ array ('class ' => 'Class ' , 'code ' => 'ExceptionTest::UNKNOWN_CODE_CONSTANT ' , 'message ' => 'ExceptionTest::UNKNOWN_MESSAGE_CONSTANT ' , 'message_regex ' => '' ),
144
+ PHPUnit_Util_Test::getExpectedException ('ExceptionTest ' , 'testUnknownConstants ' )
145
145
);
146
146
147
147
$ this ->assertSame (
148
- array ('class ' => 'Class ' , 'code ' => 'My\Space\ExceptionNamespaceTest::UNKNOWN_CODE_CONSTANT ' , 'message ' => 'My\Space\ExceptionNamespaceTest::UNKNOWN_MESSAGE_CONSTANT ' , 'message_regex ' => '' ),
149
- PHPUnit_Util_Test::getExpectedException ('My\Space\ExceptionNamespaceTest ' , 'testUnknownConstants ' )
148
+ array ('class ' => 'Class ' , 'code ' => 'My\Space\ExceptionNamespaceTest::UNKNOWN_CODE_CONSTANT ' , 'message ' => 'My\Space\ExceptionNamespaceTest::UNKNOWN_MESSAGE_CONSTANT ' , 'message_regex ' => '' ),
149
+ PHPUnit_Util_Test::getExpectedException ('My\Space\ExceptionNamespaceTest ' , 'testUnknownConstants ' )
150
150
);
151
151
}
152
152
@@ -177,27 +177,27 @@ public function requirementsProvider()
177
177
array ('testTen ' , array ('extensions ' => array ('testExt ' ))),
178
178
array ('testEleven ' , array ('OS ' => '/Linux/i ' )),
179
179
array (
180
- 'testSpace ' ,
181
- array (
182
- 'extensions ' => array ('spl ' ),
183
- 'OS ' => '/.*/i '
184
- )
180
+ 'testSpace ' ,
181
+ array (
182
+ 'extensions ' => array ('spl ' ),
183
+ 'OS ' => '/.*/i '
184
+ )
185
185
),
186
186
array (
187
- 'testAllPossibleRequirements ' ,
188
- array (
189
- 'PHP ' => '99-dev ' ,
190
- 'PHPUnit ' => '9-dev ' ,
191
- 'OS ' => '/DOESNOTEXIST/i ' ,
192
- 'functions ' => array (
193
- 'testFuncOne ' ,
194
- 'testFuncTwo ' ,
195
- ),
196
- 'extensions ' => array (
197
- 'testExtOne ' ,
198
- 'testExtTwo ' ,
199
- )
187
+ 'testAllPossibleRequirements ' ,
188
+ array (
189
+ 'PHP ' => '99-dev ' ,
190
+ 'PHPUnit ' => '9-dev ' ,
191
+ 'OS ' => '/DOESNOTEXIST/i ' ,
192
+ 'functions ' => array (
193
+ 'testFuncOne ' ,
194
+ 'testFuncTwo ' ,
195
+ ),
196
+ 'extensions ' => array (
197
+ 'testExtOne ' ,
198
+ 'testExtTwo ' ,
200
199
)
200
+ )
201
201
)
202
202
);
203
203
}
@@ -212,12 +212,12 @@ public function testGetRequirementsMergesClassAndMethodDocBlocks()
212
212
'PHPUnit ' => '3.7 ' ,
213
213
'OS ' => '/WINNT/i ' ,
214
214
'functions ' => array (
215
- 'testFuncClass ' ,
216
- 'testFuncMethod ' ,
215
+ 'testFuncClass ' ,
216
+ 'testFuncMethod ' ,
217
217
),
218
218
'extensions ' => array (
219
- 'testExtClass ' ,
220
- 'testExtMethod ' ,
219
+ 'testExtClass ' ,
220
+ 'testExtMethod ' ,
221
221
)
222
222
);
223
223
0 commit comments