本文整理汇总了PHP中Codeception\TestCase::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP TestCase::__construct方法的具体用法?PHP TestCase::__construct怎么用?PHP TestCase::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Codeception\TestCase
的用法示例。
在下文中一共展示了TestCase::__construct方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
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: __construct
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: __construct
public function __construct(array $data = array(), $dataName = '')
{
parent::__construct('testCodecept', $data, $dataName);
}
示例4: __construct
public function __construct($name = NULL, array $data = array(), $dataName = '')
{
parent::__construct($name, $data, $dataName);
$this->scenario = new \Codeception\Scenario($this);
}