PHP Class BrowscapTest\Generator\BuildGeneratorTest

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

Public Methods

Method Description
setUp ( ) Sets up the fixture, for example, open a network connection.
testBuild ( ) tests running a build
testBuildWithoutZip ( ) tests running a build without generating a zip file
testConstructFailsIfTheDirDoesNotExsist ( ) tests failing the build if the build dir does not exist
testConstructFailsIfTheDirIsNotAnDirectory ( ) tests failing the build if no build dir is a file
testConstructFailsWithoutParameters ( ) tests failing the build without parameters
testConstructFailsWithoutTheSecondParameter ( ) tests failing the build without build dir
testConstructPassesIfAllDirsExist ( ) tests creating a generator instance
testSetCollectionCreator ( ) tests setting a collection creator
testSetLogger ( ) tests setting and getting a logger

Method Details

setUp() public method

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

testBuild() public method

tests running a build
public testBuild ( )

testBuildWithoutZip() public method

tests running a build without generating a zip file
public testBuildWithoutZip ( )

testConstructFailsIfTheDirDoesNotExsist() public method

tests failing the build if the build dir does not exist

testConstructFailsIfTheDirIsNotAnDirectory() public method

tests failing the build if no build dir is a file

testConstructFailsWithoutParameters() public method

tests failing the build without parameters

testConstructFailsWithoutTheSecondParameter() public method

tests failing the build without build dir

testConstructPassesIfAllDirsExist() public method

tests creating a generator instance

testSetCollectionCreator() public method

tests setting a collection creator

testSetLogger() public method

tests setting and getting a logger
public testSetLogger ( )