Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OxCom committed Apr 27, 2020
1 parent 6ff57d8 commit 603e776
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ZendTwig/View/TwigStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function generatorSelectRender()
[$viewModel, null],
[$jsonModel, null],
[$twigModel, TwigRenderer::class],
[$viewModelTwig, TwigRenderer::class],
[$viewModelTwig, null],
];
}

Expand All @@ -106,7 +106,7 @@ public function generatorSelectRender()
*/
public function testInjectResponse($template, $expected)
{
$model = new \Laminas\View\Model\ViewModel([
$model = new TwigModel([
'key1' => 'value1',
'key2' => 'value2',
]);
Expand Down Expand Up @@ -153,7 +153,7 @@ public function testInvalidInjectResponse()
$sm = Bootstrap::getInstance()->getServiceManager();
$phpRender = $sm->get(PhpRenderer::class);
$strategyTwig = new TwigStrategy($phpRender);
$expected = "<span>value1</span><span>value2</span>\n";
$expected = "<span>{{ key1 }}</span><span>{{ key2 }}</span>\n";
$model = new \Laminas\View\Model\ViewModel([
'key1' => 'value1',
'key2' => 'value2',
Expand Down

0 comments on commit 603e776

Please sign in to comment.