本文整理匯總了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);
}