예제 #1
0
 public function __construct($dispatcher, array $data = array(), $dataName = '')
 {
     parent::__construct($dispatcher, $data, $dataName);
     $this->testClass = $data['class'];
     $this->testMethod = $data['method'];
     $this->static = $data['static'];
     $this->signature = $data['signature'];
 }
예제 #2
0
파일: Cept.php 프로젝트: NaszvadiG/ImageCMS
 public function __construct(EventDispatcher $dispatcher, array $data = array(), $dataName = '')
 {
     parent::__construct('testCodecept', $data, $dataName);
     $this->dispatcher = $dispatcher;
     if (!isset($data['file'])) {
         throw new \Exception('File with test scenario not set. Use array(file => filepath) to set a scenario');
     }
     $this->name = $data['name'];
     $this->scenario = new \Codeception\Scenario($this);
     $this->testfile = $data['file'];
     $this->bootstrap = isset($data['bootstrap']) ? $data['bootstrap'] : null;
 }
예제 #3
0
파일: Cept.php 프로젝트: itillawarra/cmfive
 public function __construct(array $data = array(), $dataName = '')
 {
     parent::__construct('testCodecept', $data, $dataName);
 }
예제 #4
0
 public function __construct($name = NULL, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->scenario = new \Codeception\Scenario($this);
 }