filenames.
$this->_view->myVar = 'test';
$expected = "<div>test</div>";
- $this->assertEquals($expected, $this->_view->render('testRender.html'));
+ $this->assertEquals($expected, $this->_view->render('testRender.html.php'));
}
// test rendering
+++ /dev/null
-<p><?= $this->myVar2 ?></p>
\ No newline at end of file
--- /dev/null
+<p><?= $this->myVar2 ?></p>
\ No newline at end of file
+++ /dev/null
-<p><?= $a ?> <?= $b ?></p>
\ No newline at end of file
--- /dev/null
+<p><?= $a ?> <?= $b ?></p>
\ No newline at end of file
+++ /dev/null
-<p><?= $myPartialObject->string_value ?></p>
\ No newline at end of file
--- /dev/null
+<p><?= $myPartialObject->string_value ?></p>
\ No newline at end of file
+++ /dev/null
-<div>subdir <?= $this->myVar ?></div>
\ No newline at end of file
--- /dev/null
+<div>subdir <?= $this->myVar ?></div>
\ No newline at end of file
+++ /dev/null
-<div>test <?= $this->h($this->myVar) ?> quotes</div>
\ No newline at end of file
--- /dev/null
+<div>test <?= $this->h($this->myVar) ?> quotes</div>
\ No newline at end of file
+++ /dev/null
-<div><?= @$this->myVar1 ?><?= $this->renderPartial('myPartial') ?></div>
\ No newline at end of file
--- /dev/null
+<div><?= @$this->myVar1 ?><?= $this->renderPartial('myPartial') ?></div>
\ No newline at end of file
+++ /dev/null
-<div><?= $this->renderPartial('myPartialObject', array('collection' => $this->myObjects)) ?></div>
\ No newline at end of file
--- /dev/null
+<div><?= $this->renderPartial('myPartialObject', array('collection' => $this->myObjects)) ?></div>
\ No newline at end of file
+++ /dev/null
-<div><?= $this->renderPartial('myPartialLocals', array('locals' => array('a' => 'hello', 'b' => 'world'))) ?></div>
\ No newline at end of file
--- /dev/null
+<div><?= $this->renderPartial('myPartialLocals', array('locals' => array('a' => 'hello', 'b' => 'world'))) ?></div>
\ No newline at end of file
+++ /dev/null
-<div><?= $this->renderPartial('myPartialObject', array('object' => $this->myObject)) ?></div>
\ No newline at end of file
--- /dev/null
+<div><?= $this->renderPartial('myPartialObject', array('object' => $this->myObject)) ?></div>
\ No newline at end of file
+++ /dev/null
-<div><?= $this->myVar ?></div>
\ No newline at end of file
--- /dev/null
+<div><?= $this->myVar ?></div>
\ No newline at end of file