PHPUnit
PHPUnit TYPO3 extension
Public Member Functions | Protected Attributes | List of all members
Tx_Phpunit_Service_FakeOutputService Class Reference
Inheritance diagram for Tx_Phpunit_Service_FakeOutputService:
Tx_Phpunit_Service_OutputService

Public Member Functions

 output ($output)
 
 getCollectedOutput ()
 
 flushOutputBuffer ()
 
 getNumberOfFlushCalls ()
 
- Public Member Functions inherited from Tx_Phpunit_Service_OutputService
 output ($output)
 
 flushOutputBuffer ()
 

Protected Attributes

 $collectedOutput = ''
 
 $numberOfFlushCalls = 0
 

Member Function Documentation

Tx_Phpunit_Service_FakeOutputService::flushOutputBuffer ( )

Does not really flush the output buffer, but just counts the number of calls to this function.

Returns
void
Tx_Phpunit_Service_FakeOutputService::getCollectedOutput ( )

Returns the collected output from all calls to output.

Returns
string the collected output, might be empty
Tx_Phpunit_Service_FakeOutputService::getNumberOfFlushCalls ( )

Returns how often flushOutputBuffer already has been called for this instance.

Returns
int the number of calls, will be >= 0
Tx_Phpunit_Service_FakeOutputService::output (   $output)

Collects $output, but does not actually echo it.

Parameters
string$outputa string to store, may be empty
Returns
void

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