class PhpUnitWrapper_3_5 extends PhpUnitWrapper_Generic

Methods

boolean
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 boolean
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.

static 
get_test_name()

No description

Details

in PhpUnitWrapper at line 65
boolean getCoverageStatus()

Getter for $coverage (see $coverage).

Return Value

boolean

in PhpUnitWrapper at line 73
setCoverageStatus($value)

Setter for $coverage (see $coverage).

Parameters

$value

in PhpUnitWrapper at line 81
PHPUnit_Framework_TestSuite getSuite()

Getter for $suite (see $suite).

Return Value

PHPUnit_Framework_TestSuite

in PhpUnitWrapper at line 89
setSuite($value)

Setter for $suite (see $suite).

Parameters

$value PHPUnit_Framework_TestSuite

in PhpUnitWrapper at line 97
PHPUnit_Framework_TestListener getReporter()

Getter for $reporter (see $reporter).

Return Value

PHPUnit_Framework_TestListener

in PhpUnitWrapper at line 105
setReporter($value)

Setter for $reporter (see $reporter).

Parameters

$value PHPUnit_Framework_TestListener

in PhpUnitWrapper at line 113
PHPUnit_Framework_TestResult getFrameworkTestResults()

Getter for $results (see $results).

Return Value

PHPUnit_Framework_TestResult

in PhpUnitWrapper at line 121
setFrameworkTestResults($value)

Setter for $results (see $results).

Parameters

$value PHPUnit_Framework_TestResult

at line 9
String getVersion()

Returns a version string, like 3.7.34 or 4.2-dev.

Return Value

String

in PhpUnitWrapper at line 138
static PhpUnitWrapper inst()

Loads and initiates phpunit, based on the available phpunit version.

Return Value

PhpUnitWrapper Instance of the php-wrapper class

in PhpUnitWrapper at line 168
static boolean has_php_unit()

Returns true if one of the two supported PHPUNIT versions is installed.

Return Value

boolean true if PHPUnit has been installed on the environment.

at line 16
init()

Initialise the wrapper class.

in PhpUnitWrapper at line 205
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.

static get_test_name()