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