PHP 클래스 DoctorTestCase

상속: extends UnitTestCase
파일 보기 프로젝트 열기: peej/phpdoctor 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$appDir
$caseDir
$iniDir
$iniPath
$outputDir
$tempDir
$testDir

공개 메소드들

메소드 설명
DoctorTestCase ( $label = false ) Create new instance.
__construct ( $label = false ) Create new instance.
assertStringContains ( string $expected, string $string, boolean $ignoreInsigificantWhitespace = false ) : boolean Reports an error if the $string does not contain $expected.
assertStringContainsRx ( $expectedRx, string $string ) : boolean Reports an error if the $string does not contain $expected. $expected is a regular expression including delimiters and any modifiers.
assertStringDoesNotContain ( string $expected, string $string, boolean $ignoreInsigificantWhitespace = false ) : boolean Reports an error if the $string contains $expected. Inverse of assertStringContains().
assertStringDoesNotContainRx ( $expectedRx, string $string ) : boolean Reports an error if the $string contains $expected. Inverse of assertStringContainsRx().
clearOutputDir ( )
clearTempDir ( )
inStr ( string $haystack, string $needle, boolean $ignoreInsigificantWhitespace = false ) : boolean Returns if $haystack contains $needle.
inStrRx ( string $haystack, string $needle ) : boolean Returns if $haystack contains $needle. $needle is a regular expression including delimiters and modifiers.
readOutputFile ( $filename )
removeDir ( $dir )
runPhpDoctor ( ) : string Command line invocation to run PHPDoctor, independent of OS and include dir settings.
setIniFile ( $iniFileName )

메소드 상세

DoctorTestCase() 공개 메소드

Create new instance.
public DoctorTestCase ( $label = false )

__construct() 공개 메소드

Create new instance.
public __construct ( $label = false )

assertStringContains() 공개 메소드

Can be set to ignore insignificant whitespace in HTML output. Any whitespace in $expected is then allowed to be expanded in $string. If you want to capture whitespace in $string which may also be completely absent, use a pipe in $expected (e.g. '|A cell|'). If $expected happens to contain a literal pipe, escape it with another pipe ('||').
public assertStringContains ( string $expected, string $string, boolean $ignoreInsigificantWhitespace = false ) : boolean
$expected string the needle
$string string the haystack
$ignoreInsigificantWhitespace boolean allows for additional space, tab and newline chars
리턴 boolean

assertStringContainsRx() 공개 메소드

Reports an error if the $string does not contain $expected. $expected is a regular expression including delimiters and any modifiers.
public assertStringContainsRx ( $expectedRx, string $string ) : boolean
$string string the haystack
리턴 boolean

assertStringDoesNotContain() 공개 메소드

Reports an error if the $string contains $expected. Inverse of assertStringContains().
public assertStringDoesNotContain ( string $expected, string $string, boolean $ignoreInsigificantWhitespace = false ) : boolean
$expected string the needle
$string string the haystack
$ignoreInsigificantWhitespace boolean allows for additional space, tab and newline chars
리턴 boolean

assertStringDoesNotContainRx() 공개 메소드

Reports an error if the $string contains $expected. Inverse of assertStringContainsRx().
public assertStringDoesNotContainRx ( $expectedRx, string $string ) : boolean
$string string the haystack
리턴 boolean

clearOutputDir() 공개 메소드

public clearOutputDir ( )

clearTempDir() 공개 메소드

public clearTempDir ( )

inStr() 공개 메소드

Can be set to ignore insignificant whitespace in HTML output. Any whitespace in $expected is then allowed to be expanded in $string. If you want to capture whitespace in $string which may also be completely absent, use a pipe in $expected (e.g. '|A cell|'). If $expected happens to contain a literal pipe, escape it with another pipe ('||'). (Quick and dirty solution for pipe escaping. Will get off track if the needle contains a chr(1) - which is rather unlikely.)
public inStr ( string $haystack, string $needle, boolean $ignoreInsigificantWhitespace = false ) : boolean
$haystack string the haystack
$needle string the needle (oh, really?!)
$ignoreInsigificantWhitespace boolean allows for additional space, tab and newline chars
리턴 boolean

inStrRx() 공개 메소드

Returns if $haystack contains $needle. $needle is a regular expression including delimiters and modifiers.
public inStrRx ( string $haystack, string $needle ) : boolean
$haystack string the haystack
$needle string the needle, as a regular expression.
리턴 boolean

readOutputFile() 공개 메소드

public readOutputFile ( $filename )

removeDir() 공개 메소드

public removeDir ( $dir )

runPhpDoctor() 공개 메소드

Call setIniFile first.
public runPhpDoctor ( ) : string
리턴 string PHPDoctor messages

setIniFile() 공개 메소드

public setIniFile ( $iniFileName )

프로퍼티 상세

$appDir 공개적으로 프로퍼티

public $appDir

$caseDir 공개적으로 프로퍼티

public $caseDir

$iniDir 공개적으로 프로퍼티

public $iniDir

$iniPath 공개적으로 프로퍼티

public $iniPath

$outputDir 공개적으로 프로퍼티

public $outputDir

$tempDir 공개적으로 프로퍼티

public $tempDir

$testDir 공개적으로 프로퍼티

public $testDir