function testDoNotClosePopup() { $controller = new TestingController(); $controller->setCurrentAction('without_popup'); $controller->performAction(); $this->assertEqual('', $this->toolkit->getResponse()->getResponseString()); }
function testError() { $uri = "/test/check/blah/?test=1&blah=2"; $uribase = "/test/"; $controller = new TestingController(); $controller->set("uri", $uri)->set("uribase", $uribase); ob_start(); $controller->format_uri()->split_uri()->call_funcs(); $output = ob_get_clean(); $this->assertPattern('/ERROR/', $output); }