/**
  * @test
  */
 public function viewHelperHandlesMultiByteValuesCorrectly()
 {
     $this->viewHelper->expects($this->never())->method('renderChildren');
     $actualResult = $this->viewHelper->render(3, '...', 'Äßütest');
     $this->assertEquals('Äßü...', $actualResult);
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 public function respectHtmlCanBeDisabled()
 {
     $this->mockContentObject->expects($this->once())->method('crop')->with('Some Content', '123|...|1')->will($this->returnValue('Cropped Content'));
     $actualResult = $this->viewHelper->render(123, '...', TRUE, FALSE);
     $this->assertEquals('Cropped Content', $actualResult);
 }