예제 #1
0
 /**
  * Checks whether last command output matches N times the provided string.
  *
  * @Then /^the output should match (\d+) times:$/
  * @param int          $nb
  * @param PyStringNode $text
  */
 public function theOutputShouldMatchNTimes($nb, PyStringNode $text)
 {
     preg_match_all($this->getExpectedOutput($text), $this->getOutput(), $matches);
     $this->asserter->phpArray($matches[0])->hasSize($nb);
 }