Overview

Namespaces

  • PHP
  • XSLTBenchmarking
    • Reports
    • RunnerConsole
    • TestsGenerator
    • TestsRunner

Classes

  • Convertor
  • HtmlConvertorDriver
  • Merger
  • Printer
  • Report

Interfaces

  • IConvertorDriver
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class Printer

Printing reports of testing into one XML file

Namespace: XSLTBenchmarking\Reports
Author: Viktor Mašíček <viktor@masicek.net>
Located at Reports/Printer.php
Methods summary
public
# __construct( string $reportsDir, array $processors )
Setting common infromation for report

Setting common infromation for report

Parameters

$reportsDir
string
Directory for generating the report
$processors
array
([name] => ('[INFORMATION NAME]' => [INFORMATION VALUE], ...)
public
# addReport( XSLTBenchmarking\Reports\Report $report )
Add one report of one test into list of all reported tests

Add one report of one test into list of all reported tests

Parameters

$report
XSLTBenchmarking\Reports\Report
Report of one test
public string
# printAll( )
Print all reports into one XML file and return path of the file

Print all reports into one XML file and return path of the file

Template of XML output:

<reports>
   <global>
      <repeating>...</repeating>
      <processors>
         <processor name="..." [INFORMATION 1]="..." [INFORMATION 2]="..." />
         <processor ... />
         ...
      </processors>
   </global>
   <tests>
      <test name="..." template="...">
         <processor name="...">
            <input
               input="..."
               expectedOutput="..."
               output="..."
               success="..."
               correctness="..."
               sumTime="..."
               avgTime="..."
               sumMemory="..."
               avgMemory="..."
               repeating="..."
            />
            <input ... />
            ...
         </processor>
         <processor ...>
            ...
         </processor>
         ...
      </test>
      <test ...>
         ...
      </test>
      ...
   </tests>
</reports>

Returns

string
XSTL Benchmarking API documentation generated by ApiGen.
Generated using the TokenReflection library.