30 $this->rendererMock = $this->getMockBuilder(\
Magento\Framework\
Phrase\RendererInterface::class)
57 $this->rendererMock->expects($this->once())
62 $this->assertEquals(
$result, $phrase->render());
72 $this->rendererMock->expects($this->never())
91 $this->rendererMock->expects($this->once())
96 $this->assertEquals(
$result, (
string)$phrase);
109 $this->assertEquals(
$text, $phrase->getText());
124 $this->assertEquals([], $phrase1->getArguments());
125 $this->assertEquals(
$arguments, $phrase2->getArguments());
131 $exception = new \Exception(
'something went wrong');
134 $this->rendererMock->expects($this->any())
136 ->willThrowException($exception);
138 $this->assertEquals(
$text, (
string)$phrase);
static setRenderer(RendererInterface $renderer)
testThatToStringIsAliasToRender()
testToStringWithExceptionOnRender()