PHP Класс TestGuy

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

Открытые методы

Метод Описание
amInPath ( $path ) [!] Method is generated. Documentation taken from corresponding module.
canSeeFileContentsEqual ( $text ) [!] Method is generated. Documentation taken from corresponding module.
canSeeFileFound ( $filename, string $path = null ) [!] Method is generated. Documentation taken from corresponding module.
canSeeInThisFile ( $text ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeFileFound ( $filename, string $path = null ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeInThisFile ( $text ) [!] Method is generated. Documentation taken from corresponding module.
cleanDir ( $dirname ) [!] Method is generated. Documentation taken from corresponding module.
copyDir ( $src, $dst ) [!] Method is generated. Documentation taken from corresponding module.
deleteDir ( $dirname ) [!] Method is generated. Documentation taken from corresponding module.
deleteFile ( $filename ) [!] Method is generated. Documentation taken from corresponding module.
deleteThisFile ( ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeFileFound ( $filename, string $path = null ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeInThisFile ( $text ) [!] Method is generated. Documentation taken from corresponding module.
openFile ( $filename ) [!] Method is generated. Documentation taken from corresponding module.
seeFileContentsEqual ( $text ) [!] Method is generated. Documentation taken from corresponding module.
seeFileFound ( $filename, string $path = null ) [!] Method is generated. Documentation taken from corresponding module.
seeInThisFile ( $text ) [!] Method is generated. Documentation taken from corresponding module.
writeToFile ( $filename, $contents ) [!] Method is generated. Documentation taken from corresponding module.

Описание методов

amInPath() публичный Метод

Enters a directory In local filesystem. Project root directory is used by default
См. также: Codeception\Module\Filesystem::amInPath()
public amInPath ( $path )
$path

canSeeFileContentsEqual() публичный Метод

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. php openFile('process.pid'); $I->seeFileContentsEqual('3192'); ?>
См. также: Codeception\Module\Filesystem::seeFileContentsEqual()
public canSeeFileContentsEqual ( $text )
$text Conditional Assertion: Test won't be stopped on fail

canSeeFileFound() публичный Метод

Checks if file exists in path. Opens a file when it's exists php seeFileFound('UserModel.php','app/models'); ?>
См. также: Codeception\Module\Filesystem::seeFileFound()
public canSeeFileFound ( $filename, string $path = null )
$filename
$path string Conditional Assertion: Test won't be stopped on fail

canSeeInThisFile() публичный Метод

Checks If opened file has text in it. Usage: php openFile('composer.json'); $I->seeInThisFile('codeception/codeception'); ?>
См. также: Codeception\Module\Filesystem::seeInThisFile()
public canSeeInThisFile ( $text )
$text Conditional Assertion: Test won't be stopped on fail

cantSeeFileFound() публичный Метод

Checks if file does not exists in path
См. также: Codeception\Module\Filesystem::dontSeeFileFound()
public cantSeeFileFound ( $filename, string $path = null )
$filename
$path string Conditional Assertion: Test won't be stopped on fail

cantSeeInThisFile() публичный Метод

Checks If opened file doesn't contain text in it php openFile('composer.json'); $I->dontSeeInThisFile('codeception/codeception'); ?>
См. также: Codeception\Module\Filesystem::dontSeeInThisFile()
public cantSeeInThisFile ( $text )
$text Conditional Assertion: Test won't be stopped on fail

cleanDir() публичный Метод

Erases directory contents php cleanDir('logs'); ?>
См. также: Codeception\Module\Filesystem::cleanDir()
public cleanDir ( $dirname )
$dirname

copyDir() публичный Метод

Copies directory with all contents php copyDir('vendor','old_vendor'); ?>
См. также: Codeception\Module\Filesystem::copyDir()
public copyDir ( $src, $dst )
$src
$dst

deleteDir() публичный Метод

Deletes directory with all subdirectories php deleteDir('vendor'); ?>
См. также: Codeception\Module\Filesystem::deleteDir()
public deleteDir ( $dirname )
$dirname

deleteFile() публичный Метод

Deletes a file php deleteFile('composer.lock'); ?>
См. также: Codeception\Module\Filesystem::deleteFile()
public deleteFile ( $filename )
$filename

deleteThisFile() публичный Метод

Deletes a file
См. также: Codeception\Module\Filesystem::deleteThisFile()
public deleteThisFile ( )

dontSeeFileFound() публичный Метод

Checks if file does not exists in path
См. также: Codeception\Module\Filesystem::dontSeeFileFound()
public dontSeeFileFound ( $filename, string $path = null )
$filename
$path string

dontSeeInThisFile() публичный Метод

Checks If opened file doesn't contain text in it php openFile('composer.json'); $I->dontSeeInThisFile('codeception/codeception'); ?>
См. также: Codeception\Module\Filesystem::dontSeeInThisFile()
public dontSeeInThisFile ( $text )
$text

openFile() публичный Метод

Opens a file and stores it's content. Usage: php openFile('composer.json'); $I->seeInThisFile('codeception/codeception'); ?>
См. также: Codeception\Module\Filesystem::openFile()
public openFile ( $filename )
$filename

seeFileContentsEqual() публичный Метод

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. php openFile('process.pid'); $I->seeFileContentsEqual('3192'); ?>
См. также: Codeception\Module\Filesystem::seeFileContentsEqual()
public seeFileContentsEqual ( $text )
$text

seeFileFound() публичный Метод

Checks if file exists in path. Opens a file when it's exists php seeFileFound('UserModel.php','app/models'); ?>
См. также: Codeception\Module\Filesystem::seeFileFound()
public seeFileFound ( $filename, string $path = null )
$filename
$path string

seeInThisFile() публичный Метод

Checks If opened file has text in it. Usage: php openFile('composer.json'); $I->seeInThisFile('codeception/codeception'); ?>
См. также: Codeception\Module\Filesystem::seeInThisFile()
public seeInThisFile ( $text )
$text

writeToFile() публичный Метод

Saves contents to file
См. также: Codeception\Module\Filesystem::writeToFile()
public writeToFile ( $filename, $contents )
$filename
$contents