public function testRenderTitle()
 {
     $title = 'some_title';
     $expected = "<title>some_title</title>" . "\n";
     $this->pageConfigMock->expects($this->any())->method('getTitle')->will($this->returnValue($this->titleMock));
     $this->titleMock->expects($this->once())->method('get')->will($this->returnValue($title));
     $this->assertEquals($expected, $this->renderer->renderTitle());
 }
示例#2
0
 public function testRenderTitle()
 {
     $title = 'some_title';
     $expected = "<title>some_title</title>" . "\n";
     $this->pageConfigMock->expects($this->any())->method('getTitle')->willReturn($this->titleMock);
     $this->titleMock->expects($this->once())->method('get')->willReturn($title);
     $this->escaperMock->expects($this->once())->method('escapeHtml')->willReturnArgument(0);
     $this->assertEquals($expected, $this->renderer->renderTitle());
 }