PHP Класс ParaTest\Logging\JUnit\TestCase

A simple data structure for tracking the results of a testcase node in a JUnit xml document
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$assertions integer
$class string
$errors array Number of errors in this test case
$failures array Number of failures in this test case
$file string
$line string
$name string
$time string

Открытые методы

Метод Описание
__construct ( $name, $class, $file, $line, $assertions, $time )
addError ( string $type, string $text )
addFailure ( string $type, string $text )
addSystemOut ( mixed $node ) : mixed Add systemOut result on test (if has failed or have error)
caseFromNode ( SimpleXMLElement $node ) : TestCase Factory method that creates a TestCase object from a SimpleXMLElement

Защищенные методы

Метод Описание
addDefect ( string $collName, $type, $text ) Add a defect type (error or failure)

Описание методов

__construct() публичный Метод

public __construct ( $name, $class, $file, $line, $assertions, $time )

addDefect() защищенный Метод

Add a defect type (error or failure)
protected addDefect ( string $collName, $type, $text )
$collName string the name of the collection to add to
$type
$text

addError() публичный Метод

public addError ( string $type, string $text )
$type string
$text string

addFailure() публичный Метод

public addFailure ( string $type, string $text )
$type string
$text string

addSystemOut() публичный статический Метод

Add systemOut result on test (if has failed or have error)
public static addSystemOut ( mixed $node ) : mixed
$node mixed
Результат mixed

caseFromNode() публичный статический Метод

Factory method that creates a TestCase object from a SimpleXMLElement
public static caseFromNode ( SimpleXMLElement $node ) : TestCase
$node SimpleXMLElement
Результат TestCase

Описание свойств

$assertions публичное свойство

public int $assertions
Результат integer

$class публичное свойство

public string $class
Результат string

$errors публичное свойство

Number of errors in this test case
public array $errors
Результат array

$failures публичное свойство

Number of failures in this test case
public array $failures
Результат array

$file публичное свойство

public string $file
Результат string

$line публичное свойство

public string $line
Результат string

$name публичное свойство

public string $name
Результат string

$time публичное свойство

public string $time
Результат string