Beispiel #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'];
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 public function __construct(array $data = array(), $dataName = '')
 {
     parent::__construct('testCodecept', $data, $dataName);
 }
Beispiel #4
0
 public function __construct($name = NULL, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->scenario = new \Codeception\Scenario($this);
 }