/**
  * @Given /^I run phpspec$/
  */
 public function iRunPhpspec()
 {
     $application = new Application('2.0-dev');
     $application->setAutoExit(false);
     $this->applicationTester = new ApplicationTester($application);
     $this->applicationTester->run('run --no-interaction -f pretty');
 }
Example #2
0
 /**
  * @When /^(?:|I )start describing (?:|the )"(?P<class>[^"]*)" class$/
  * @When /^(?:|I )have started describing (?:|the )"(?P<class>[^"]*)" class$/
  */
 public function iStartDescribing($class)
 {
     $this->applicationTester = $this->createApplicationTester();
     $this->applicationTester->run(sprintf('describe %s --no-interaction', $class), array('decorated' => false));
 }
 /**
  * @Given /^I run phpspec$/
  */
 public function iRunPhpspec()
 {
     $this->applicationTester = $this->createApplicationTester();
     $this->applicationTester->run('run --no-interaction');
 }