function testPerformFailedNoView() { $command = new DisplayViewCommand(); $this->toolkit->expectOnce('getView'); $this->toolkit->setReturnValue('getView', null); die_on_error(false); $command->perform(); $this->assertTrue(catch_error('LimbException', $e)); die_on_error(); }
function testPerformFailedNoView() { $command = new DisplayViewCommand(); $this->toolkit->expectOnce('getView'); $this->toolkit->setReturnValue('getView', null); try { $command->perform(); $this->assertTrue(false); } catch(LimbException $e) { } }
function performRender() { include_once LIMB_DIR . '/core/commands/DisplayViewCommand.class.php'; $command = new DisplayViewCommand(); return $command->perform(); }