src/Kunstmaan/BehatBundle/Features/Context/FeatureContext.php
public function hiddenFieldValueEquals($field, $value)
    {
        $node = $this->findHiddenField($field);
        $actual = $node->getValue();
        $regex = '/^' . preg_quote($value, '/') . '/ui';

        if (!preg_match($regex, $actual)) {
            $message = sprintf('The hidden field "%s" value is "%s", but "%s" expected.', $field, $actual, $value);

            throw new ExpectationException($message, $this->getSession());
        }
    }
public function hiddenFieldValueEquals($field, $value)
    {
        $node = $this->findHiddenField($field);
        $actual = $node->getValue();
        $regex = '/^' . preg_quote($value, '/') . '/ui';

        if (!preg_match($regex, $actual)) {
            $message = sprintf('The hidden field "%s" value is "%s", but "%s" expected.', $field, $actual, $value);

            throw new ExpectationException($message, $this->getSession());
        }
    }
public function hiddenFieldValueEquals ( $ field , $ value ) { $ node = $ this -> findHiddenField ( $ field ) ; $ actual = $ node -> getValue ( ) ; $ regex = '/^' . preg_quote ( $ value , '/' ) . '/ui' ; if ( ! preg_match ( $ regex , $ actual ) ) { $ message = sprintf ( 'The hidden field "%s" value is "%s", but "%s" expected.' , $ field , $ actual , $ value ) ; throw new ExpectationException ( $ message , $ this -> getSession ( ) ) ; } }
Checks that form hidden field with specified id|name has specified value.

@Then /^the "(?P<field>(?:[^"]|\\")*)" hidden field should contain "(?P<value>(?:[^"]|\\")*)"$/
Checks that form hidden field with specified id|name has specified value .