@@ -102,7 +102,6 @@ public function testPhpFunctionsExtractor()
102102 $ this ->assertSame ('fn_8(); ' , array_shift ($ comments ));
103103 $ this ->assertSame ('ALLOW: This is a comment to fn9 ' , array_shift ($ comments ));
104104
105-
106105 //fn10
107106 $ function = array_shift ($ functions );
108107 $ this ->assertSame ('fn10 ' , $ function ->getName ());
@@ -180,34 +179,4 @@ public function _testPhpFunctionsScannerWithPrefixedComments()
180179 $ this ->assertSame (23 , $ comment ->getLastLine ());
181180 $ this ->assertSame ('ALLOW: Related comment 3 ' , $ comment ->getComment ());
182181 }
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- }
213182}
0 commit comments