PHP 트레잇 _generated\CliTesterActions

파일 보기 프로젝트 열기: phundament/app

공개 메소드들

메소드 설명
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.
canSeeInShellOutput ( $text ) [!] Method is generated. Documentation taken from corresponding module.
canSeeInThisFile ( $text ) [!] Method is generated. Documentation taken from corresponding module.
canSeeNumberNewLines ( integer $number ) [!] Method is generated. Documentation taken from corresponding module.
canSeeShellOutputMatches ( $regex ) [!] Method is generated. Documentation taken from corresponding module.
canSeeThisFileMatches ( $regex ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeFileFound ( $filename, string $path = null ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeInShellOutput ( $text ) [!] 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.
dontSeeInShellOutput ( $text ) [!] 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.
runShellCommand ( $command, boolean $failNonZero = null ) [!] 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.
seeInShellOutput ( $text ) [!] Method is generated. Documentation taken from corresponding module.
seeInThisFile ( $text ) [!] Method is generated. Documentation taken from corresponding module.
seeNumberNewLines ( integer $number ) [!] Method is generated. Documentation taken from corresponding module.
seeShellOutputMatches ( $regex ) [!] Method is generated. Documentation taken from corresponding module.
seeThisFileMatches ( $regex ) [!] Method is generated. Documentation taken from corresponding module.
writeToFile ( $filename, $contents ) [!] Method is generated. Documentation taken from corresponding module.

보호된 메소드들

메소드 설명
getScenario ( ) : Codeception\Scenario

메소드 상세

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

canSeeInShellOutput() 공개 메소드

Checks that output from last executed command contains text
또한 보기: Codeception\Module\Cli::seeInShellOutput()
public canSeeInShellOutput ( $text )
$text 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

canSeeNumberNewLines() 공개 메소드

Checks If opened file has the number of new lines. Usage: php openFile('composer.json'); $I->seeNumberNewLines(5); ?>
또한 보기: Codeception\Module\Filesystem::seeNumberNewLines()
public canSeeNumberNewLines ( integer $number )
$number integer New lines Conditional Assertion: Test won't be stopped on fail

canSeeShellOutputMatches() 공개 메소드

Conditional Assertion: Test won't be stopped on fail
또한 보기: Codeception\Module\Cli::seeShellOutputMatches()
public canSeeShellOutputMatches ( $regex )

canSeeThisFileMatches() 공개 메소드

Checks that contents of currently opened file matches $regex
또한 보기: Codeception\Module\Filesystem::seeThisFileMatches()
public canSeeThisFileMatches ( $regex )
$regex Conditional Assertion: Test won't be stopped on fail

cantSeeFileFound() 공개 메소드

Checks if file does not exist in path
또한 보기: Codeception\Module\Filesystem::dontSeeFileFound()
public cantSeeFileFound ( $filename, string $path = null )
$filename
$path string Conditional Assertion: Test won't be stopped on fail

cantSeeInShellOutput() 공개 메소드

Checks that output from latest command doesn't contain text
또한 보기: Codeception\Module\Cli::dontSeeInShellOutput()
public cantSeeInShellOutput ( $text )
$text 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 exist in path
또한 보기: Codeception\Module\Filesystem::dontSeeFileFound()
public dontSeeFileFound ( $filename, string $path = null )
$filename
$path string

dontSeeInShellOutput() 공개 메소드

Checks that output from latest command doesn't contain text
또한 보기: Codeception\Module\Cli::dontSeeInShellOutput()
public dontSeeInShellOutput ( $text )
$text

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

getScenario() 추상적인 보호된 메소드

abstract protected getScenario ( ) : Codeception\Scenario
리턴 Codeception\Scenario

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

runShellCommand() 공개 메소드

Executes a shell command. Fails If exit code is > 0. You can disable this by setting second parameter to false php runShellCommand('phpunit'); do not fail test when command fails $I->runShellCommand('phpunit', false);
또한 보기: Codeception\Module\Cli::runShellCommand()
public runShellCommand ( $command, boolean $failNonZero = null )
$command
$failNonZero boolean

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

seeInShellOutput() 공개 메소드

Checks that output from last executed command contains text
또한 보기: Codeception\Module\Cli::seeInShellOutput()
public seeInShellOutput ( $text )
$text

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

seeNumberNewLines() 공개 메소드

Checks If opened file has the number of new lines. Usage: php openFile('composer.json'); $I->seeNumberNewLines(5); ?>
또한 보기: Codeception\Module\Filesystem::seeNumberNewLines()
public seeNumberNewLines ( integer $number )
$number integer New lines

seeShellOutputMatches() 공개 메소드

[!] Method is generated. Documentation taken from corresponding module.
또한 보기: Codeception\Module\Cli::seeShellOutputMatches()
public seeShellOutputMatches ( $regex )

seeThisFileMatches() 공개 메소드

Checks that contents of currently opened file matches $regex
또한 보기: Codeception\Module\Filesystem::seeThisFileMatches()
public seeThisFileMatches ( $regex )
$regex

writeToFile() 공개 메소드

Saves contents to file
또한 보기: Codeception\Module\Filesystem::writeToFile()
public writeToFile ( $filename, $contents )
$filename
$contents