/** * @test * @depends createTaskNoArgs * @return null */ public function kernelExecuteShouldFail(StartupTask $task) { $msg = 'execute method must be extended'; $this->setExpectedException('LogicException', $msg); $ns = 'Appfuel\\Kernel\\Mvc'; $route = $this->getMock("{$ns}\\MvcRouteDetailInterface"); $context = $this->getMock("{$ns}\\MvcContextInterface"); $task->kernelExecute(array(), $route, $context); }
/** * @return MyStartupTask */ public function __construct() { parent::__construct(array('test-a' => null)); }