Provides methods for creating test suite packages by locating test case files in the tests folder in /data.
The testSuite classes require a correctly configured PHPUnit installation.
public __construct()
Creates a new testSuitePackages object
public static getInstance([$inTestSuiteFolder = null])
Gets a single instance of the testSuitePackages object, creating and populating it if it does not exist already. Optionally specify the test suite folder.
public static setInstance($inPackageSet)
Used to replace the existing instance of the package set. This method will nullify the existing instance. Nothing is returned.
public static buildPackageSet([$inTestSuiteFolder = null])
Returns a testSuitePackages set containing the details of all test cases located within the current test folder location
public static createTestSuite($inTestSuitePackageSet, [$inPackage = null], [$inTestCase = null])
Creates a test suite object from the available packages and returns it.
Optionally, a test suite will be created for the specified package or the specific test case within a package. The returned SimpleTest TestSuite can then be used with any reporter / render.
public reset()
Resets the object
public addPackage($inPackage)
Adds the test package to the set of packages
public removePackage($inPackage)
Removes the package from the set
public getPackage($inName)
Fetches the package named $inName, false if not found
public hasPackage($inName)
Returns true if the package exists in this package
public getPackages()
Returns all packages
public getCount()
Returns the number of packages
Posted by: Scorpio Documentor (Writer), in Test on 19 Nov 2009 @ 20:39
Tags: baseset, countable, iteratoraggregate, test, testsuitepackages, traversable,
This
work is licenced under a
Creative Commons Licence.