PHP Class BrowscapTest\Parser\IniParserTest

Author: James Titcumb ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: browscap/browscap

Public Methods

Method Description
sortArrayDataProvider ( ) tests setting and getting a logger
testConstructorSetsFilename ( ) tests creating the parser class
testGetFileLinesReturnsLinesFromFile ( ) tests getting lines from a file
testGetFileLinesReturnsLinesFromPreviouslySetLines ( ) tests setting and getting lines of a file
testGetLinesFromFileReturnsArrayWithLines ( ) tests getting lines from a file
testGetLinesFromFileThrowsExceptionIfFileDoesNotExist ( ) tests throwing an exception if the input file does not exist
testParseThrowsExceptionWhenInvalidFormatting ( ) tests throwing an exception if more than one eual sign is present in a line
testParseWithSorting ( ) tests parsing sections with sorting
testParseWithoutSorting ( ) tests parsing sections without sorting
testSetShouldSort ( ) tests setting the should sort flag
testShouldSort ( ) tests setting and getting the should sort flag
testSortArrayAndChildArrays ( $unsorted, $sorted )

Method Details

sortArrayDataProvider() public method

tests setting and getting a logger

testConstructorSetsFilename() public method

tests creating the parser class

testGetFileLinesReturnsLinesFromFile() public method

tests getting lines from a file

testGetFileLinesReturnsLinesFromPreviouslySetLines() public method

tests setting and getting lines of a file

testGetLinesFromFileReturnsArrayWithLines() public method

tests getting lines from a file

testGetLinesFromFileThrowsExceptionIfFileDoesNotExist() public method

tests throwing an exception if the input file does not exist

testParseThrowsExceptionWhenInvalidFormatting() public method

tests throwing an exception if more than one eual sign is present in a line

testParseWithSorting() public method

tests parsing sections with sorting

testParseWithoutSorting() public method

tests parsing sections without sorting

testSetShouldSort() public method

tests setting the should sort flag
public testSetShouldSort ( )

testShouldSort() public method

tests setting and getting the should sort flag
public testShouldSort ( )

testSortArrayAndChildArrays() public method

public testSortArrayAndChildArrays ( $unsorted, $sorted )