本文整理汇总了PHP中Ethna_Controller::reveal方法的典型用法代码示例。如果您正苦于以下问题:PHP Ethna_Controller::reveal方法的具体用法?PHP Ethna_Controller::reveal怎么用?PHP Ethna_Controller::reveal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ethna_Controller
的用法示例。
在下文中一共展示了Ethna_Controller::reveal方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testSetGet
public function testSetGet()
{
$controller = $this->controller->reveal();
$action_form = new Ethna_Mock_ActionForm($controller);
$this->assertNull($action_form->get("name"), "action form should return correct value");
$action_form->set("name", "chobie");
$this->assertEquals("chobie", $action_form->get("name"), "action form should return correct value");
}
示例2: testPerform
public function testPerform()
{
$this->controller->getActionClassName("test")->willReturn("Ethna_Mock_ActionClass");
$backend = new Ethna_Mock_Backend($this->controller->reveal());
$this->assertEquals("index", $backend->perform("test"), "backend returns correct forward name");
}
示例3: testPrepare
/**
* check Ethna_ActionClass::prepare requirements
*/
public function testPrepare()
{
$controller = $this->controller->reveal();
$action = new Ethna_Mock_ActionClass($controller->getBackend());
$this->assertNull($action->prepare(), "should return null");
}