PHP Класс DoctorTestCase

Наследование: extends UnitTestCase
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$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