PHP 클래스 BrowscapTest\Data\DataCollectionTest

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

공개 메소드들

메소드 설명
setUp ( ) Sets up the fixture, for example, open a network connection.
testAddDefaultBrowser ( ) checks if the default browser is added sucessfully
testAddDefaultProperties ( ) checks if the default properties are added sucessfully
testAddEnginesFileThrowsExceptionIfFileContainsInvalidJson ( ) tests if a specific exception is thrown in case of error while adding an engine json file
testAddEnginesFileThrowsExceptionIfFileContainsNoData ( )
testAddEnginesFileThrowsExceptionIfFileContainsNoProperties ( )
testAddEnginesFileThrowsExceptionIfFileDoesNotExist ( )
testAddPlatformsFileThrowsExceptionIfFileContainsInvalidJson ( ) tests if a specific exception is thrown in case of error while adding a platform json file
testAddPlatformsFileThrowsExceptionIfFileContainsNoData ( )
testAddPlatformsFileThrowsExceptionIfFileContainsNoMatch ( )
testAddPlatformsFileThrowsExceptionIfFileContainsNoProperties ( )
testAddPlatformsFileThrowsExceptionIfFileDoesNotExist ( )
testAddSourceFileOk ( ) checks if a source file is added successful
testAddSourceFileOkWithLiteAndVersions ( ) checks if a source file is added successful
testAddSourceFileThrowsExceptionIfChildrenAreNotArrays ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfChildrenDoesNotHaveMatchKeyword ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfChildrenHasDeviceProperties ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfChildrenHasEngineProperties ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfChildrenHasParentProperty ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfChildrenHasPlatformProperties ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfChildrenHaveAnInvalidMatchKeyword ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfChildrenIsNotAnArray ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfChildrenMatchKeywordHasPlatformPlaceHolderWithoutPlatforms ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfChildrenMatchKeywordHasVersionPlaceHolderWithoutVersions ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfChildrenPropertiesAreNotArrays ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfChildrenPropertyIsNotAnArray ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfDivisionIsAddedTwice ( ) checks if a exception is thrown if a division is defined twice in the source files
testAddSourceFileThrowsExceptionIfFileContainsInvalidJson ( ) checks if a exception is thrown if the source file had invalid json content
testAddSourceFileThrowsExceptionIfFileDoesNotExist ( )
testAddSourceFileThrowsExceptionIfNameHasInvalidCharsForUseragent ( ) checks if a exception is thrown if the lite property is missing
testAddSourceFileThrowsExceptionIfNoChildrenPropertyIsAvailable ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfNoCommentPropertyIsAvailable ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfNoDivisionIsAvailable ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfNoLitePropertyIsAvailable ( ) checks if a exception is thrown if the lite property is missing
testAddSourceFileThrowsExceptionIfNoNameIsAvailableForUseragent ( ) checks if a exception is thrown if the lite property is missing
testAddSourceFileThrowsExceptionIfNoParentPropertyIsAvailable ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfNoPropertiesAreAvailable ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfNoSortIndexIsAvailable ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfNoStandardPropertyIsAvailable ( ) checks if a exception is thrown if the lite property is missing
testAddSourceFileThrowsExceptionIfNoVersionsAreDefinedButVersionPropertyIsAvailable ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfNoVersionsAreDefinedWithVersionPlaceholders ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfParentPropertyIsNotDefaultProperties ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfPropertiesEntryIsNotAnArray ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfPropertiesIncludeDeviceData ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfPropertiesIncludeEngineData ( ) checks if a exception is thrown if the sortindex property is missing
testAddSourceFileThrowsExceptionIfPropertiesIncludePlatformData ( ) checks if a exception is thrown if the sortindex property is missing
testCheckPropertyOk ( ) tests if no error is raised if all went well
testCheckPropertyWithoutDeviceType ( )
testCheckPropertyWithoutIsMobileDevice ( )
testCheckPropertyWithoutIsTablet ( )
testCheckPropertyWithoutParent ( )
testCheckPropertyWithoutVersion ( )
testGetDeviceThrowsExceptionIfDeviceDoesNotExist ( )
testGetEngine ( ) tests getting an existing engine
testGetEngineThrowsExceptionIfEngineDoesNotExist ( )
testGetEngineThrowsExceptionIfPlatformDoesNotExist ( )
testGetGenerationDate ( ) tests getting the generation date
testGetPlatform ( ) tests getting an exiting platform
testGetPlatformThrowsExceptionIfPlatformDoesNotExist ( )
testGetVersion ( ) tests getting the version
testSetGetLogger ( ) tests the setter and the getter for a logger

비공개 메소드들

메소드 설명
getDevicesJsonFixture ( )
getEngineJsonFixture ( )
getPlatformsJsonFixture ( )
getUserAgentFixtures ( )

메소드 상세

setUp() 공개 메소드

This method is called before a test is executed.
public setUp ( )

testAddDefaultBrowser() 공개 메소드

checks if the default browser is added sucessfully

testAddDefaultProperties() 공개 메소드

checks if the default properties are added sucessfully

testAddEnginesFileThrowsExceptionIfFileContainsInvalidJson() 공개 메소드

tests if a specific exception is thrown in case of error while adding an engine json file

testAddEnginesFileThrowsExceptionIfFileContainsNoData() 공개 메소드

testAddEnginesFileThrowsExceptionIfFileContainsNoProperties() 공개 메소드

testAddEnginesFileThrowsExceptionIfFileDoesNotExist() 공개 메소드

testAddPlatformsFileThrowsExceptionIfFileContainsInvalidJson() 공개 메소드

tests if a specific exception is thrown in case of error while adding a platform json file

testAddPlatformsFileThrowsExceptionIfFileContainsNoData() 공개 메소드

testAddPlatformsFileThrowsExceptionIfFileContainsNoMatch() 공개 메소드

testAddPlatformsFileThrowsExceptionIfFileContainsNoProperties() 공개 메소드

testAddPlatformsFileThrowsExceptionIfFileDoesNotExist() 공개 메소드

testAddSourceFileOk() 공개 메소드

checks if a source file is added successful
public testAddSourceFileOk ( )

testAddSourceFileOkWithLiteAndVersions() 공개 메소드

checks if a source file is added successful

testAddSourceFileThrowsExceptionIfChildrenAreNotArrays() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfChildrenDoesNotHaveMatchKeyword() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfChildrenHasDeviceProperties() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfChildrenHasEngineProperties() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfChildrenHasParentProperty() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfChildrenHasPlatformProperties() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfChildrenHaveAnInvalidMatchKeyword() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfChildrenIsNotAnArray() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfChildrenMatchKeywordHasPlatformPlaceHolderWithoutPlatforms() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfChildrenMatchKeywordHasVersionPlaceHolderWithoutVersions() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfChildrenPropertiesAreNotArrays() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfChildrenPropertyIsNotAnArray() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfDivisionIsAddedTwice() 공개 메소드

checks if a exception is thrown if a division is defined twice in the source files

testAddSourceFileThrowsExceptionIfFileContainsInvalidJson() 공개 메소드

checks if a exception is thrown if the source file had invalid json content

testAddSourceFileThrowsExceptionIfFileDoesNotExist() 공개 메소드

testAddSourceFileThrowsExceptionIfNameHasInvalidCharsForUseragent() 공개 메소드

checks if a exception is thrown if the lite property is missing

testAddSourceFileThrowsExceptionIfNoChildrenPropertyIsAvailable() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfNoCommentPropertyIsAvailable() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfNoDivisionIsAvailable() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfNoLitePropertyIsAvailable() 공개 메소드

checks if a exception is thrown if the lite property is missing

testAddSourceFileThrowsExceptionIfNoNameIsAvailableForUseragent() 공개 메소드

checks if a exception is thrown if the lite property is missing

testAddSourceFileThrowsExceptionIfNoParentPropertyIsAvailable() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfNoPropertiesAreAvailable() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfNoSortIndexIsAvailable() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfNoStandardPropertyIsAvailable() 공개 메소드

checks if a exception is thrown if the lite property is missing

testAddSourceFileThrowsExceptionIfNoVersionsAreDefinedButVersionPropertyIsAvailable() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfNoVersionsAreDefinedWithVersionPlaceholders() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfParentPropertyIsNotDefaultProperties() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfPropertiesEntryIsNotAnArray() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfPropertiesIncludeDeviceData() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfPropertiesIncludeEngineData() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testAddSourceFileThrowsExceptionIfPropertiesIncludePlatformData() 공개 메소드

checks if a exception is thrown if the sortindex property is missing

testCheckPropertyOk() 공개 메소드

tests if no error is raised if all went well
public testCheckPropertyOk ( )

testCheckPropertyWithoutDeviceType() 공개 메소드

testCheckPropertyWithoutIsMobileDevice() 공개 메소드

testCheckPropertyWithoutIsTablet() 공개 메소드

testCheckPropertyWithoutParent() 공개 메소드

testCheckPropertyWithoutVersion() 공개 메소드

testGetDeviceThrowsExceptionIfDeviceDoesNotExist() 공개 메소드

testGetEngine() 공개 메소드

tests getting an existing engine
public testGetEngine ( )

testGetEngineThrowsExceptionIfEngineDoesNotExist() 공개 메소드

testGetEngineThrowsExceptionIfPlatformDoesNotExist() 공개 메소드

testGetGenerationDate() 공개 메소드

tests getting the generation date

testGetPlatform() 공개 메소드

tests getting an exiting platform
public testGetPlatform ( )

testGetPlatformThrowsExceptionIfPlatformDoesNotExist() 공개 메소드

testGetVersion() 공개 메소드

tests getting the version
public testGetVersion ( )

testSetGetLogger() 공개 메소드

tests the setter and the getter for a logger
public testSetGetLogger ( )