Location: PHPKode > projects > Open Power Template > tests/Opt/function/upper_2.txt
Testing the upper() function in the aggregate version.

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:root>
{@vars is upper($vars)}
{@vars.v1}
{@vars.v2}
</opt:root>

>>>>data.php
$view->vars = array(
	'v1' => 'hi universe',
	'v2' => 'Hi UnIvErSe'
);

>>>>expected.txt
OUTPUT

>>>>result.txt
HI UNIVERSE
HI UNIVERSE
Return current item: Open Power Template