PHP 클래스 ParaTest\Logging\JUnit\TestCase

A simple data structure for tracking the results of a testcase node in a JUnit xml document
파일 보기 프로젝트 열기: brianium/paratest

공개 프로퍼티들

프로퍼티 타입 설명
$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