本文整理匯總了PHP中CakeTestCase::before方法的典型用法代碼示例。如果您正苦於以下問題:PHP CakeTestCase::before方法的具體用法?PHP CakeTestCase::before怎麽用?PHP CakeTestCase::before使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CakeTestCase
的用法示例。
在下文中一共展示了CakeTestCase::before方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: before
function before($method)
{
if ($this->debug) {
pr($method);
}
parent::before($method);
}
示例2: before
public function before($method)
{
Configure::write('Database.logSQL', 0);
$msg = sprintf('(%s::%s)', get_class($this), $method);
CakeLog::write(LOG_INFO, $msg);
parent::before($method);
Configure::write('Database.logSQL', 2);
}
示例3: before
function before($method)
{
if (!in_array(strtolower($method), $this->methods)) {
extract($this->settings);
$this->selenium = new Testing_Selenium($browser, $url, $host, $port);
$this->selenium->start();
if ($this->settings['speed']) {
$this->selenium->setSpeed($this->settings['speed']);
}
$this->selenium->open('/selenium/selenium/cookie/' . $this->cookie);
$this->selenium->waitForPageToLoad();
$this->assertTrue($this->selenium->isCookiePresent('selenium'));
$this->assertTrue($this->selenium->isTextPresent('Cookie created'));
$this->assertEqual($this->selenium->getCookieByName('selenium'), $this->cookie);
}
return parent::before($method);
}
示例4: before
/**
* before method
*
* @param mixed $method
* @access public
* @return void
*/
function before($method)
{
Configure::write('Acl.classname', 'DbAclTwoTest');
Configure::write('Acl.database', 'test_suite');
parent::before($method);
}