PhpUnitWrapper_3_5
class PhpUnitWrapper_3_5 extends PhpUnitWrapper_Generic (View source)
Methods
Getter for $reporter (see $reporter).
Getter for $results (see $results).
Returns a version string, like 3.7.34 or 4.2-dev.
Loads and initiates phpunit, based on the available phpunit version.
Returns true if one of the two supported PHPUNIT versions is installed.
Initialise the wrapper class.
Perform all tests, added to the suite and initialises SilverStripe to collect the results of the unit tests.
Details
bool
getCoverageStatus()
Getter for $coverage (see $coverage).
setCoverageStatus($value)
Setter for $coverage (see $coverage).
PHPUnit_Framework_TestSuite
getSuite()
Getter for $suite (see $suite).
setSuite($value)
Setter for $suite (see $suite).
PHPUnit_Framework_TestListener
getReporter()
Getter for $reporter (see $reporter).
setReporter($value)
Setter for $reporter (see $reporter).
PHPUnit_Framework_TestResult
getFrameworkTestResults()
Getter for $results (see $results).
setFrameworkTestResults($value)
Setter for $results (see $results).
string
getVersion()
Returns a version string, like 3.7.34 or 4.2-dev.
static PhpUnitWrapper
inst()
Loads and initiates phpunit, based on the available phpunit version.
static bool
has_php_unit()
Returns true if one of the two supported PHPUNIT versions is installed.
init()
Initialise the wrapper class.
runTests()
Perform all tests, added to the suite and initialises SilverStripe to collect the results of the unit tests.
This method calls see beforeRunTests and see afterRunTests.