Browscap\Parser\IniParser::shouldSort PHP Method

shouldSort() public method

public shouldSort ( ) : boolean
return boolean
    public function shouldSort()
    {
        return $this->shouldSort;
    }

Usage Example

Example #1
0
 /**
  * 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());
 }