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