Beispiel #1
0
 /**
  * @When I run phpspec and answer :answer when asked if I want to generate the code
  * @When I run phpspec with the option :option and (I) answer :answer when asked if I want to generate the code
  */
 public function iRunPhpspecAndAnswer($answer, $option = "")
 {
     $this->applicationTester = $this->createApplicationTester();
     $this->applicationTester->putToInputStream(sprintf("%s\n", $answer));
     $this->applicationTester->run($option ? 'run --' . $option : 'run', array('interactive' => true, 'decorated' => false));
 }