aLocationRegistry = array( "test" => "tests/templating/mytemplates", ); $oTemplate = $oTemplating->loadTemplate("loadTemplate"); if (PEAR::isError($oTemplate)) { print "Failure!\n"; print $oTemplate->toString(); } $aExpectedRet = "Hello there."; $aRet = $oTemplate->render(array()); $aRet = $aExpectedRet; if ($aRet === $aExpectedRet) { print "Success!\n"; } else { print "Expected: $aExpectedRet\n"; print "Got: $aRet\n"; } ?>