PHP 클래스 ParaTest\Logging\JUnit\Writer

파일 보기 프로젝트 열기: brianium/paratest 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$caseAttrs string A pattern for matching testcase attrs
$defaultSuite array A default suite to ease flattening of suite structures
$document DOMDocument
$interpreter ParaTest\Logging\LogInterpreter
$name string The name attribute of the testsuite being written
$suiteAttrs string A pattern for matching testsuite attributes

공개 메소드들

메소드 설명
__construct ( LogInterpreter $interpreter, $name = '' )
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

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
isEmptyLineAttribute ( string $name, mixed $value ) : boolean Prevent writing empty "line" XML attributes which could break parsers.

메소드 상세

__construct() 공개 메소드

public __construct ( LogInterpreter $interpreter, $name = '' )
$interpreter ParaTest\Logging\LogInterpreter

appendCase() 보호된 메소드

Append a testcase node to the given testsuite node
protected appendCase ( $suiteNode, TestCase $case ) : DOMElement
$suiteNode
$case TestCase
리턴 DOMElement

appendDefects() 보호된 메소드

Append error or failure nodes to the given testcase node
protected appendDefects ( $caseNode, $defects, $type )
$caseNode
$defects
$type

appendSuite() 보호된 메소드

Append a testsuite node to the given root element
protected appendSuite ( $root, ParaTest\Logging\JUnit\TestSuite $suite ) : DOMElement
$root
$suite ParaTest\Logging\JUnit\TestSuite
리턴 DOMElement

getName() 공개 메소드

Get the name of the root suite being written
public getName ( ) : string
리턴 string

getSuiteRoot() 보호된 메소드

Get the root level testsuite node
protected getSuiteRoot ( $suites ) : DOMElement
$suites
리턴 DOMElement

getSuiteRootAttributes() 보호된 메소드

Get the attributes used on the root testsuite node
protected getSuiteRootAttributes ( $suites ) : mixed
$suites
리턴 mixed

getXml() 공개 메소드

Returns the xml structure the writer will use
public getXml ( ) : string
리턴 string

write() 공개 메소드

Write the xml structure to a file path
public write ( $path )
$path

프로퍼티 상세

$caseAttrs 보호되어 있는 정적으로 프로퍼티

A pattern for matching testcase attrs
protected static string $caseAttrs
리턴 string

$defaultSuite 보호되어 있는 정적으로 프로퍼티

A default suite to ease flattening of suite structures
protected static array $defaultSuite
리턴 array

$document 보호되어 있는 프로퍼티

protected DOMDocument $document
리턴 DOMDocument

$interpreter 보호되어 있는 프로퍼티

protected LogInterpreter,ParaTest\Logging $interpreter
리턴 ParaTest\Logging\LogInterpreter

$name 보호되어 있는 프로퍼티

The name attribute of the testsuite being written
protected string $name
리턴 string

$suiteAttrs 보호되어 있는 정적으로 프로퍼티

A pattern for matching testsuite attributes
protected static string $suiteAttrs
리턴 string