Stud.IP
4.2 Revision
|
Public Member Functions | |
amInPath ($path) | |
openFile ($filename) | |
deleteFile ($filename) | |
deleteDir ($dirname) | |
copyDir ($src, $dst) | |
canSeeInThisFile ($text) | |
seeInThisFile ($text) | |
canSeeFileContentsEqual ($text) | |
seeFileContentsEqual ($text) | |
cantSeeInThisFile ($text) | |
dontSeeInThisFile ($text) | |
deleteThisFile () | |
canSeeFileFound ($filename, $path=null) | |
seeFileFound ($filename, $path=null) | |
cantSeeFileFound ($filename, $path=null) | |
dontSeeFileFound ($filename, $path=null) | |
cleanDir ($dirname) | |
writeToFile ($filename, $contents) | |
Inherited Methods void wantToTest($text) void wantTo($text) void execute($callable) void expectTo($prediction) void expect($prediction) void amGoingTo($argumentation) void am($role) void lookForwardTo($achieveValue) void comment($description) void haveFriend($name, $actorClass = null)
amInPath | ( | $path | ) |
[!] Method is generated. Documentation taken from corresponding module.
Enters a directory In local filesystem. Project root directory is used by default
$path |
canSeeFileContentsEqual | ( | $text | ) |
[!] Method is generated. Documentation taken from corresponding module.
Checks the strict matching of file contents. Unlike seeInThisFile
will fail if file has something more than expected lines. Better to use with HEREDOC strings. Matching is done after removing "\r" chars from file content.
$text | Conditional Assertion: Test won't be stopped on fail |
canSeeFileFound | ( | $filename, | |
$path = null |
|||
) |
canSeeInThisFile | ( | $text | ) |
cantSeeFileFound | ( | $filename, | |
$path = null |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Checks if file does not exists in path
$filename | ||
string | $path | Conditional Assertion: Test won't be stopped on fail |
cantSeeInThisFile | ( | $text | ) |
[!] Method is generated. Documentation taken from corresponding module.
Checks If opened file doesn't contain text
in it
$text | Conditional Assertion: Test won't be stopped on fail |
cleanDir | ( | $dirname | ) |
[!] Method is generated. Documentation taken from corresponding module.
Erases directory contents
$dirname |
copyDir | ( | $src, | |
$dst | |||
) |
[!] Method is generated. Documentation taken from corresponding module.
Copies directory with all contents
$src | |
$dst |
deleteDir | ( | $dirname | ) |
[!] Method is generated. Documentation taken from corresponding module.
Deletes directory with all subdirectories
$dirname |
deleteFile | ( | $filename | ) |
[!] Method is generated. Documentation taken from corresponding module.
Deletes a file
$filename |
deleteThisFile | ( | ) |
[!] Method is generated. Documentation taken from corresponding module.
Deletes a file
dontSeeFileFound | ( | $filename, | |
$path = null |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Checks if file does not exists in path
$filename | ||
string | $path |
dontSeeInThisFile | ( | $text | ) |
openFile | ( | $filename | ) |
seeFileContentsEqual | ( | $text | ) |
[!] Method is generated. Documentation taken from corresponding module.
Checks the strict matching of file contents. Unlike seeInThisFile
will fail if file has something more than expected lines. Better to use with HEREDOC strings. Matching is done after removing "\r" chars from file content.
$text |
seeFileFound | ( | $filename, | |
$path = null |
|||
) |
[!] Method is generated. Documentation taken from corresponding module.
Checks if file exists in path. Opens a file when it's exists
$filename | ||
string | $path |
seeInThisFile | ( | $text | ) |
writeToFile | ( | $filename, | |
$contents | |||
) |
[!] Method is generated. Documentation taken from corresponding module.
Saves contents to file
$filename | |
$contents |