Example #1
0
 public function test_toArray_returnsProperArray()
 {
     $parentContents = ['k0' => 'v0', 'k1' => 'v1'];
     $contents = ['k1' => 'V1', 'k2' => 'v2'];
     $parent = new \Retrinko\Ini\IniSection('parentSection');
     $parent->setContents($parentContents);
     $section = new \Retrinko\Ini\IniSection('test', $parent);
     $section->setContents($contents);
     $this->assertEquals(['k0' => 'v0', 'k1' => 'V1', 'k2' => 'v2'], $section->toArray());
 }