public function test_toString_returnsProperString() { $section = new \Retrinko\Ini\IniSection('test'); $section->set('hello', 'world'); $section->set('bool', true); $section->set('int', 3); $section->set('nullVal', null); $expected = <<<EOF [test] hello = "world" bool = "true" int = "3" nullVal = "null" EOF; $string = $section->toString(); $this->assertEquals($expected, $string); }