/** * @depends testEmptyDetail * @return null */ public function testViewDetailCorrectInterface() { $view = $this->getMock('Appfuel\\Kernel\\Mvc\\MvcViewDetailInterface'); $data = array('view-detail' => $view); $detail = new MvcRouteDetail($data); $this->assertTrue($detail->isViewDetail()); $this->assertSame($view, $detail->getViewDetail()); }