tests/behat/bootstrap/FeatureContext.php
/**
     * @Then method should return string :returnString
     *
     * @param string $returnString Expected string
     *
     * @throws \Exception
     */
@Then method should return string :returnString
@param string $returnString Expected string

@throws \Exception
@Then method should return string : returnString @param string $returnString Expected string @throws \ Exception
public function methodShouldReturnString($returnString)
    {
        if (!is_string($returnString)) {
            throw new Exception('Result is not a string');
        }
        if ($this->result !== $returnString) {
            $message = sprintf('Result "%s" is not equal to expected string "%s"', $this->result, $returnString);
            throw new Exception($message);
        }
    }
public function methodShouldReturnString ( $ returnString ) { if ( ! is_string ( $ returnString ) ) { throw new Exception ( 'Result is not a string' ) ; } if ( $ this -> result !== $ returnString ) { $ message = sprintf ( 'Result "%s" is not equal to expected string "%s"' , $ this -> result , $ returnString ) ; throw new Exception ( $ message ) ; } }
@Then method should return string :returnString
 @param string $returnString Expected string
@Then method should return string : returnString @param string $returnString Expected string