PEAR2_Templates_Savant-0.1.0PEAR2_Templates_Savant-0.1.0/test/PEAR2_Templates_Savant/pear2.php.net/render/array.phpt

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
\pear2\Templates\Savant\Main::render() array test
--FILE--
<?php
require dirname(__FILE__) . '/../test_framework.php.inc';
chdir(__DIR__);
$savant = new \pear2\Templates\Savant\Main();

$array = array(1,2,3);
$test->assertEquals('123', $savant->render($array), 'render array');

$array = array(1,2,3);
$test->assertEquals('123', $savant->render($array, 'echostring.tpl.php'), 'render array through custom template');

?>
===DONE===
--EXPECT--
===DONE===
EOF