/** * tests setting and getting the should sort flag * * @group parser * @group sourcetest */ public function testShouldSort() { $parser = new IniParser(''); self::assertFalse($parser->shouldSort()); $parser->setShouldSort(true); self::assertTrue($parser->shouldSort()); $parser->setShouldSort(false); self::assertFalse($parser->shouldSort()); }