public function testFeatureCommented() { $code = "<?php\n //\\\$I->wantTo('run this test'); "; $this->parser->parseFeature($code); $this->assertNull($this->scenario->getFeature()); $code = "<?php\n /*\n \\\$I->wantTo('run this test'); \n */"; $this->parser->parseFeature($code); $this->assertNull($this->scenario->getFeature()); }
public function testMethod($signature) { if (!$this->scenario->getFeature()) { $this->scenario->setFeature("test method {$signature}()"); } else { $this->scenario->setFeature($this->scenario->getFeature() . " with [[{$signature}]]"); } $this->scenario->condition(array_merge(array('testMethod', $signature))); return $this; }
public function testMethod($signature) { $this->scenario->condition('testMethod', array($signature)); if ($this->scenario->running()) { $this->scenario->runStep(); return $this; } if (!$this->scenario->getFeature()) { $this->scenario->setFeature("test method {$signature}()"); } else { $this->scenario->setFeature($this->scenario->getFeature() . " with [[{$signature}]]"); } return $this; }
public function getFeature() { return $this->scenario->getFeature(); }