tasks/ext/phpunit/formatter/PHPUnitResultFormatter.php

Show: inherited
Table of Contents

$Id: PHPUnitResultFormatter.php 796 2010-06-24 14:36:00Z mrook $

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

This software consists of voluntary contributions made by many individuals and is licensed under the LGPL. For more information please see http://phing.info.

\PHPUnitResultFormatter

Package: phing\tasks\ext\phpunit\formatter

This abstract class describes classes that format the results of a PHPUnit testrun.

Implements
Children
\SummaryPHPUnitResultFormatter
\XMLPHPUnitResultFormatter
\PlainPHPUnitResultFormatter
\CloverPHPUnitResultFormatter
Author
Michiel Rook  
Since
2.1.0  
Version
$Id: PHPUnitResultFormatter.php 796 2010-06-24 14:36:00Z mrook $  

Properties

Propertyprivate  $errorCounts= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $failureCounts= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $incompleteCounts= 'false'
Default valuefalseDetails
Type
n/a
Propertyprotected  $out= 'NULL'
Default valueNULLDetails
Type
n/a
Propertyprotected  $project= 'NULL'
Default valueNULLDetails
Type
n/a
Propertyprivate  $runCounts= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $skipCounts= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $timers= 'false'
Default valuefalseDetails
Type
n/a

Methods

methodpublic__construct( \PHPUnitTask $parentTask ) : void

Constructor

Parameters
Name Type Description
$parentTask \PHPUnitTask

Calling Task

methodpublicaddError(  $test,  $e,  $time ) : void

Parameters
Name Type Description
$test
$e
$time
methodpublicaddFailure(  $test,  $e,  $time ) : void

Parameters
Name Type Description
$test
$e
$time
methodpublicaddIncompleteTest(  $test,  $e,  $time ) : void

Parameters
Name Type Description
$test
$e
$time
methodpublicaddSkippedTest(  $test,  $e,  $time ) : void

Parameters
Name Type Description
$test
$e
$time
methodpublicendTest(  $test,  $time ) : void

Parameters
Name Type Description
$test
$time
methodpublicendTestRun( ) : void

methodpublicendTestSuite(  $suite ) : void

Parameters
Name Type Description
$suite
methodpublicgetElapsedTime( ) : void

methodpublicgetErrorCount( ) : void

methodpublicgetExtension( ) : string

Returns the extension used for this formatter

Returns
Type Description
string the extension
methodpublicgetFailureCount( ) : void

methodpublicgetIncompleteCount( ) : void

methodprivategetMicrotime( ) : void

methodpublicgetPreferredOutfile( ) : void

methodpublicgetRunCount( ) : void

methodpublicgetSkippedCount( ) : void

methodpublicprocessResult(  $result ) : void

Parameters
Name Type Description
$result
methodpublicsetOutput(  $out ) : void

Sets the writer the formatter is supposed to write its results to.

Parameters
Name Type Description
$out
methodpublicstartTest(  $test ) : void

Parameters
Name Type Description
$test
methodpublicstartTestRun( ) : void

methodpublicstartTestSuite(  $suite ) : void

Parameters
Name Type Description
$suite
Documentation was generated by DocBlox 0.17.1.