PHP Class Sanpi\Behatch\Context\SystemContext

Inheritance: implements Behat\Behat\Context\Context
Show file Open project: behatch/contexts

Public Methods

Method Description
__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

Method Details

__construct() public method

public __construct ( $root = '.' )

after() public method

public after ( )

commandShouldFail() public method

Command should fail
public commandShouldFail ( )

commandShouldLastLessThan() public method

Command should last less than
public commandShouldLastLessThan ( $seconds )

commandShouldMoreLessThan() public method

Command should last more than
public commandShouldMoreLessThan ( $seconds )

commandShouldSucceed() public method

Command should succeed

getTranslationResources() public static method

public static getTranslationResources ( )

iCreateTheFileContaining() public method

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

iExecute() public method

Execute a command
public iExecute ( $cmd )

iExecuteFromProjectRoot() public method

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

ouputShouldNotContain() public method

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

outputShouldBe() public method

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

outputShouldContain() public method

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

outputShouldNotBe() public method

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

printTheContentOfFile() public method

public printTheContentOfFile ( $filename )

putFileIntoField() public method

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