@@ -102,7 +102,6 @@ public function testPhpFunctionsExtractor()
102
102
$ this ->assertSame ('fn_8(); ' , array_shift ($ comments ));
103
103
$ this ->assertSame ('ALLOW: This is a comment to fn9 ' , array_shift ($ comments ));
104
104
105
-
106
105
//fn10
107
106
$ function = array_shift ($ functions );
108
107
$ this ->assertSame ('fn10 ' , $ function ->getName ());
@@ -180,34 +179,4 @@ public function _testPhpFunctionsScannerWithPrefixedComments()
180
179
$ this ->assertSame (23 , $ comment ->getLastLine ());
181
180
$ this ->assertSame ('ALLOW: Related comment 3 ' , $ comment ->getComment ());
182
181
}
183
-
184
- public function stringDecodeProvider ()
185
- {
186
- return [
187
- ['"test" ' , 'test ' ],
188
- ["'test' " , 'test ' ],
189
- ["'DATE \a \\t TIME' " , 'DATE \a\t TIME ' ],
190
- ["'DATE \a \\t TIME$' " , 'DATE \a\t TIME$ ' ],
191
- ["'DATE \a \\t TIME \$' " , 'DATE \a\t TIME$ ' ],
192
- ["'DATE \a \\t TIME \$a' " , 'DATE \a\t TIME$a ' ],
193
- ['"FIELD \\tFIELD" ' , "FIELD \tFIELD " ],
194
- ['"$" ' , '$ ' ],
195
- ['"Hi $" ' , 'Hi $ ' ],
196
- ['"$ hi" ' , '$ hi ' ],
197
- ['"Hi\t$name" ' , "Hi \t\$name " ],
198
- ['"Hi \\\\" ' , 'Hi \\' ],
199
- ['"{$obj->name}" ' , '{$obj->name} ' ],
200
- ['"a\x20b $c" ' , 'a b $c ' ],
201
- ['"a\x01b\2 \1 \01 \001 \r \n \t \v \f" ' , "a \1b \2 \1 \1 \1 \r \n \t \v \f" ],
202
- ['"$ \$a \"" ' , '$ $a " ' ],
203
- ];
204
- }
205
-
206
- /**
207
- * @dataProvider stringDecodeProvider
208
- */
209
- public function _testStringDecode ($ source , $ decoded )
210
- {
211
- $ this ->assertSame ($ decoded , PhpFunctionsScanner::decode ($ source ));
212
- }
213
182
}
0 commit comments