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