PHP 클래스 BrowscapTest\Parser\IniParserTest

저자: James Titcumb ([email protected])
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: browscap/browscap

공개 메소드들

메소드 설명
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 )

메소드 상세

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
public testSetShouldSort ( )

testShouldSort() 공개 메소드

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

testSortArrayAndChildArrays() 공개 메소드

public testSortArrayAndChildArrays ( $unsorted, $sorted )