Property | Type | Description | |
---|---|---|---|
$caseAttrs | string | A pattern for matching testcase attrs | |
$defaultSuite | array | A default suite to ease flattening of suite structures | |
$document | DOMDocument | ||
$interpreter | |||
$name | string | The name attribute of the testsuite being written | |
$suiteAttrs | string | A pattern for matching testsuite attributes |
Method | Description | |
---|---|---|
__construct ( |
||
getName ( ) : string | Get the name of the root suite being written | |
getXml ( ) : string | Returns the xml structure the writer will use | |
write ( $path ) | Write the xml structure to a file path |
Method | Description | |
---|---|---|
appendCase ( $suiteNode, TestCase $case ) : DOMElement | Append a testcase node to the given testsuite node | |
appendDefects ( $caseNode, $defects, $type ) | Append error or failure nodes to the given testcase node | |
appendSuite ( $root, ParaTest\Logging\JUnit\TestSuite $suite ) : DOMElement | Append a testsuite node to the given root element | |
getSuiteRoot ( $suites ) : DOMElement | Get the root level testsuite node | |
getSuiteRootAttributes ( $suites ) : mixed | Get the attributes used on the root testsuite node |
Method | Description | |
---|---|---|
isEmptyLineAttribute ( string $name, mixed $value ) : boolean | Prevent writing empty "line" XML attributes which could break parsers. |
public __construct ( |
||
$interpreter |
protected appendCase ( $suiteNode, TestCase $case ) : DOMElement | ||
$suiteNode | ||
$case | TestCase | |
return | DOMElement |
protected appendDefects ( $caseNode, $defects, $type ) | ||
$caseNode | ||
$defects | ||
$type |
protected appendSuite ( $root, ParaTest\Logging\JUnit\TestSuite $suite ) : DOMElement | ||
$root | ||
$suite | ParaTest\Logging\JUnit\TestSuite | |
return | DOMElement |
protected getSuiteRoot ( $suites ) : DOMElement | ||
$suites | ||
return | DOMElement |
protected getSuiteRootAttributes ( $suites ) : mixed | ||
$suites | ||
return | mixed |
protected static string $caseAttrs | ||
return | string |
protected static array $defaultSuite | ||
return | array |
protected LogInterpreter,ParaTest\Logging $interpreter | ||
return |
protected string $name | ||
return | string |
protected static string $suiteAttrs | ||
return | string |