We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db97579 commit 2586fcaCopy full SHA for 2586fca
1 file changed
test/JsonMachineTest/TokensTest.php
@@ -218,10 +218,18 @@ public function testGetPositionNoDebugging()
218
$this->assertSame(0, $tokens->getPosition());
219
}
220
221
+ public function testOneCharString()
222
+ {
223
+ $tokens = new Tokens(['["o"]']);
224
+ $result = iterator_to_array($tokens, false);
225
+
226
+ $this->assertSame(['[', '"o"', ']'], $result);
227
+ }
228
229
public function jsonFilesWithDifferentLineEndings()
230
{
231
return [
-// 'cr new lines' => [__DIR__.'/formatted-cr.json'],
232
+ 'cr new lines' => [__DIR__.'/formatted-cr.json'],
233
'lf new lines' => [__DIR__.'/formatted-lf.json'],
234
'crlf new lines' => [__DIR__.'/formatted-crlf.json'],
235
];
0 commit comments