PHP Unit Testing Framework 1
A Unit testing framework for PHP.
Public Member Functions | Protected Attributes

XMLTestRunnerWithStyleSheet Class Reference

This test runner generates the report in XML and apply a style sheet to it. More...

Inheritance diagram for XMLTestRunnerWithStyleSheet:
XMLTestRunner TestRunner TestSuiteResult TextTestRunner XHTMLTestRunner

Public Member Functions

 __construct ()
 Initializes the first part of the style sheet.
 Report ()
 Applies the style sheet to a generated XML report.

Protected Attributes

 $styleSheet
 Style sheet to use.

Detailed Description

This test runner generates the report in XML and apply a style sheet to it.

The class uses XMLTestRunner to generate a report and then transforms this report using XSLT.

Definition at line 51 of file xml_test_runner_with_style_sheet.php.


Constructor & Destructor Documentation

__construct ( )

Initializes the first part of the style sheet.

This constructs the first two lines of the style sheet which is common to all XSLT style sheets. i.e.

      <?xml version="1.0" encoding="US-ASCII"?>
      <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      

Reimplemented from TestSuiteResult.

Reimplemented in TextTestRunner, and XHTMLTestRunner.

Definition at line 67 of file xml_test_runner_with_style_sheet.php.


Member Function Documentation

Report ( )

Applies the style sheet to a generated XML report.

Generates the report in XML and applies the style sheet

Reimplemented from XMLTestRunner.

Definition at line 79 of file xml_test_runner_with_style_sheet.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables

© 2011, Ed Heal