Testomatio - Test Management for Codeception
Module for testing local filesystem. Fork it to extend the module for FTP, Amazon S3, others.
Module was developed to test Codeception itself.
param string
$pathreturn void
Enters a directory In local filesystem.
Project root directory is used by default
param string
$dirnamereturn void
Erases directory contents
param string
$srcparam string
$dstreturn void
Copies directory with all contents
param string
$dirnamereturn void
Deletes directory with all subdirectories
param string
$filenamereturn void
Deletes a file
return void
Deletes a file
param string
$filenameparam string
$pathreturn void
Checks if file does not exist in path
param string
$textreturn void
Checks If opened file doesn’t contain text
in it
param string
$filenamereturn void
Opens a file and stores it’s content.
Usage:
param string
$textreturn void
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.
param string
$filenameparam string
$pathreturn void
Checks if file exists in path.
Opens a file when it’s exists
param string
$textreturn void
Checks If opened file has text
in it.
Usage:
param int
$number New linesreturn void
Checks If opened file has the number
of new lines.
Usage:
param string
$regexreturn void
Checks that contents of currently opened file matches $regex
param string
$filenameparam string
$contentsreturn void
Saves contents to file