'NotAnIntVector' =>
[0 => 0, 2 => 1, 1 => 2, 3 => 3
],
'IntVectorWithStringKeys' =>
['a' => 0, 'b' => 1, 'c' => 2
],
'TableWithIntKeys' =>
[0 => 0, 1 => 1, 3 => 3
],
'FalseBoolean' => false,
'TrueBoolean' => true,
'Null' => null,
'Float' => 1.23,
],
'Entry2' => 'String',
]);
$this->
assertFileEquals(__DIR__.'/Fixtures/en.txt',
$this->directory.'/en.txt'
);
} public function testWriteTraversable() { $this->writer->
write($this->directory, 'en',
new \
ArrayIterator([ 'Entry1' =>
new \
ArrayIterator([ 'Array' =>
['foo', 'bar',
['Key' => 'value'
]],
'Integer' => 5,
'IntVector' =>
[0, 1, 2, 3
],
'NotAnIntVector' =>
[0 => 0, 2 => 1, 1 => 2, 3 => 3
],
'IntVectorWithStringKeys' =>
['a' => 0, 'b' => 1, 'c' => 2
],