render() public method

public render ( string $email ) : string
$email string The email address to be turned into a link.
return string Rendered email link
 /**
  * @test
  */
 public function renderDoesNotAddEmptyScheme()
 {
     $mockTagBuilder = $this->createMock(TagBuilder::class, array('setTagName', 'addAttribute', 'setContent'));
     $mockTagBuilder->expects($this->any())->method('setTagName')->with('a');
     $mockTagBuilder->expects($this->once())->method('addAttribute')->with('href', 'some-domain.tld');
     $mockTagBuilder->expects($this->once())->method('setContent')->with('some content');
     $this->viewHelper->_set('tag', $mockTagBuilder);
     $this->viewHelper->expects($this->any())->method('renderChildren')->will($this->returnValue('some content'));
     $this->viewHelper->initialize();
     $this->viewHelper->render('some-domain.tld', '');
 }