PHPUnit
PHPUnit TYPO3 extension
 All Classes Namespaces Functions
Public Member Functions | Protected Attributes | List of all members
Tx_Phpunit_BackEnd_TestStatistics Class Reference

Public Member Functions

 start ()
 
 stop ()
 
 getTime ()
 
 getMemory ()
 

Protected Attributes

 $isRunning = FALSE
 
 $startTime = 0.0
 
 $currentTime = 0.0
 
 $startMemory = 0
 
 $currentMemory = 0
 

Member Function Documentation

Tx_Phpunit_BackEnd_TestStatistics::getMemory ( )

Calculates the memory usage since start has been called.

Returns
integer the memory used (in Bytes) since start has been called, will be >= 0
Tx_Phpunit_BackEnd_TestStatistics::getTime ( )

Calculates the time since start has been called.

Returns
float the time in seconds passed since start has been called, will be >= 0.0
Tx_Phpunit_BackEnd_TestStatistics::start ( )

Starts the recording of the tests statistics.

Note: This function may only be called once.

Returns
void
Exceptions
BadMethodCallException
Tx_Phpunit_BackEnd_TestStatistics::stop ( )

Stops the recording of the tests statistics.

Note: This function may only be called once.

Returns
void
Exceptions
BadMethodCallException

The documentation for this class was generated from the following file: