Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit e940bdf

Browse files
committed
parametrize suffix in test case
1 parent a2eb914 commit e940bdf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/ZendViewRendererTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,11 @@ public function testRenderChildWithDefaultParameter()
610610
public function testCanRenderWithCustomSuffix()
611611
{
612612
$name = 'zend-custom-suffix';
613-
$renderer = new ZendViewRenderer(null, null, 'php');
613+
$suffix = 'pht';
614+
$renderer = new ZendViewRenderer(null, null, $suffix);
614615
$renderer->addPath(__DIR__ . '/TestAsset');
615616
$result = $renderer->render('zendview-custom-suffix', ['name' => $name]);
616-
$content = file_get_contents(__DIR__ . '/TestAsset/zendview-custom-suffix.pht');
617+
$content = file_get_contents(__DIR__ . '/TestAsset/zendview-custom-suffix.' . $suffix);
617618
$content = str_replace('<?php echo $name ?>', $name, $content);
618619
$this->assertEquals($content, $result);
619620
}

0 commit comments

Comments
 (0)