/** * @test */ public function callingRenderAddsUriViewHelpersReturnAsTagHrefAttributeIfItsNotEmpty() { $this->uriModuleViewHelper->expects($this->once())->method('render')->will($this->returnValue('SomethingNotNull')); $this->tagBuilder->expects($this->once())->method('addAttribute')->with('href', 'SomethingNotNull'); $this->viewHelper->render('path'); }