PHP Класс Sanpi\Behatch\Context\SystemContext

Наследование: implements Behat\Behat\Context\Context
Показать файл Открыть проект

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

Метод Описание
__construct ( $root = '.' )
after ( )
commandShouldFail ( ) Command should fail
commandShouldLastLessThan ( $seconds ) Command should last less than
commandShouldMoreLessThan ( $seconds ) Command should last more than
commandShouldSucceed ( ) Command should succeed
getTranslationResources ( )
iCreateTheFileContaining ( $filename, Behat\Gherkin\Node\PyStringNode $string )
iExecute ( $cmd ) Execute a command
iExecuteFromProjectRoot ( $cmd ) Execute a command from project root
ouputShouldNotContain ( $text ) Checks, that output not contains specified text.
outputShouldBe ( Behat\Gherkin\Node\PyStringNode $string )
outputShouldContain ( $text ) Checks, that output contains specified text.
outputShouldNotBe ( Behat\Gherkin\Node\PyStringNode $string )
printTheContentOfFile ( $filename )
putFileIntoField ( $file, $field ) Uploads a file using the specified input field

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

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

public __construct ( $root = '.' )

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

public after ( )

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

Command should fail
public commandShouldFail ( )

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

Command should last less than
public commandShouldLastLessThan ( $seconds )

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

Command should last more than
public commandShouldMoreLessThan ( $seconds )

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

Command should succeed

getTranslationResources() публичный статический Метод

public static getTranslationResources ( )

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

public iCreateTheFileContaining ( $filename, Behat\Gherkin\Node\PyStringNode $string )
$string Behat\Gherkin\Node\PyStringNode

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

Execute a command
public iExecute ( $cmd )

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

Execute a command from project root
public iExecuteFromProjectRoot ( $cmd )

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

Checks, that output not contains specified text.
public ouputShouldNotContain ( $text )

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

public outputShouldBe ( Behat\Gherkin\Node\PyStringNode $string )
$string Behat\Gherkin\Node\PyStringNode

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

Checks, that output contains specified text.
public outputShouldContain ( $text )

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

public outputShouldNotBe ( Behat\Gherkin\Node\PyStringNode $string )
$string Behat\Gherkin\Node\PyStringNode

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

public printTheContentOfFile ( $filename )

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

Uploads a file using the specified input field
public putFileIntoField ( $file, $field )