本文整理汇总了PHP中Codeception\Module::_before方法的典型用法代码示例。如果您正苦于以下问题:PHP Module::_before方法的具体用法?PHP Module::_before怎么用?PHP Module::_before使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Codeception\Module
的用法示例。
在下文中一共展示了Module::_before方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _before
public function _before(\Codeception\TestCase $test)
{
if ($this->config['cleanup']) {
$this->cleanup();
}
parent::_before($test);
}
示例2: _before
public function _before(TestInterface $test)
{
if ($this->config['cleanup']) {
$this->cleanup();
}
parent::_before($test);
}
示例3: _before
public function _before(\Codeception\TestCase $test)
{
parent::_before($test);
/////////////////////////////////////
// initialize your database here
/////////////////////////////////////
}
示例4: _before
/**
* Code to run before each test
*
* @param TestInterface $test
*/
public function _before(TestInterface $test)
{
if ($this->config['reconnect']) {
$this->connect();
}
$this->removeInserted();
parent::_before($test);
}
示例5: _before
/**
* @param \Codeception\TestCase $test
*
* @return void
*/
public function _before(TestCase $test)
{
parent::_before($test);
Propel::getWriteConnection('zed')->beginTransaction();
}
示例6: _before
/**
* Before test case hook
*
* @param TestCase $test test
*
* @return void
*/
public function _before(TestCase $test)
{
parent::_before($test);
$this->module->_before($test);
}
示例7: _before
/**
* {@inheritDoc}
* @see \Codeception\Module::_before()
*/
public function _before(TestCase $testCase)
{
parent::_before($testCase);
}
示例8: _before
public function _before(\Codeception\TestCase $test)
{
if ($this->config['cleanup'] && !$this->populated) {
$this->cleanup();
$this->loadDump();
}
parent::_before($test);
}
示例9: _before
/**
* @param TestCase $testcase
*/
public function _before(TestCase $testcase)
{
$this->unloadFixtures();
$this->loadFixtures();
parent::_before($testcase);
}
示例10: _before
public function _before(TestCase $test)
{
if ($this->config['reconnect']) {
$this->connect();
}
if ($this->config['cleanup'] && !$this->populated) {
$this->cleanup();
$this->loadDump();
}
parent::_before($test);
}
示例11: _before
/**
* @param Cept $cept
*/
public function _before(Cept $cept)
{
$this->unloadFixtures();
$this->loadFixtures();
parent::_before($cept);
}
示例12: _before
public function _before(TestCase $test)
{
$this->debug(__CLASS__ . '::_before [' . $test->getName() . ']');
$this->initSignalHandler();
parent::_before($test);
}