tasks/ext/phpunit/PHPUnitReportTask.php
$Id: PHPUnitReportTask.php 1387 2011-12-10 11:05:25Z 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.
\PHPUnitReportTask
Transform a PHPUnit xml report using XSLT.
This transformation generates an html report in either framed or non-framed style. The non-framed style is convenient to have a concise report via mail, the framed report is much more convenient if you want to browse into different packages or testcases since it is a Javadoc like report.
- Parent(s)
- \Task < \ProjectComponent
- Author
- Michiel Rook
- Since
- 2.1.0
- Version
- $Id: PHPUnitReportTask.php 1387 2011-12-10 11:05:25Z mrook $
Properties

$inFile= '"testsuites.xml"'
the directory where the results XML can be found
"testsuites.xml"Details- Type
- n/a
Methods

fixDocument(
$document
)
:
voidFixes DOM document tree: - adds package="default" to 'testsuite' elements without package attribute - removes outer 'testsuite' container(s)
| Name | Type | Description |
|---|---|---|
| $document |

setFormat(
$format
)
:
voidSet the format of the generated report. Must be noframes or frames.
| Name | Type | Description |
|---|---|---|
| $format |

setInFile(
$inFile
)
:
voidSet the filename of the XML results file to use.
| Name | Type | Description |
|---|---|---|
| $inFile |

setStyleDir(
$styleDir
)
:
voidSet the directory where the stylesheets are located.
| Name | Type | Description |
|---|---|---|
| $styleDir |

setToDir(
$toDir
)
:
voidSet the directory where the files resulting from the transformation should be written to.
| Name | Type | Description |
|---|---|---|
| $toDir |

setUseSortTable(
boolean $useSortTable
)
:
voidSets whether to use the sorttable JavaScript library, defaults to false See {@link http://www.kryogenix.org/code/browser/sorttable/)}
| Name | Type | Description |
|---|---|---|
| $useSortTable | boolean |