public function iShouldSeeInTheOutput($string) {
    if (strpos($this->output, $string) === false) {
        throw new Exception(sprintf('Did not see "%s" in output "%s"', $string, $this->output));
    }
  }
public function iShouldSeeInTheOutput($string) {
    if (strpos($this->output, $string) === false) {
        throw new Exception(sprintf('Did not see "%s" in output "%s"', $string, $this->output));
    }
  }
public function iShouldSeeInTheOutput ( $ string ) { if ( strpos ( $ this -> output , $ string ) === false ) { throw new Exception ( sprintf ( 'Did not see "%s" in output "%s"' , $ string , $ this -> output ) ) ; } }
Validate command output.

@Then I should see :string in the output

@throws Exception if output does not contain phrase.
Validate command output .