コード例 #1
0
ファイル: ParserTest.php プロジェクト: foxman209/Codeception
 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());
 }
コード例 #2
0
ファイル: AbstractGuy.php プロジェクト: BatVane/Codeception
 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;
 }
コード例 #3
0
ファイル: AbstractGuy.php プロジェクト: pfz/codeception
 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;
 }
コード例 #4
0
ファイル: Actor.php プロジェクト: itillawarra/cmfive
 public function getFeature()
 {
     return $this->scenario->getFeature();
 }