function test()
{
$this->ctx->logicalPath = 'foo';
$jst = new JstProcessor(function () {
return <<<JS
function() { return "foo"; }
JS;
});
$this->assertEquals(<<<EXPECTED
(function() {
this.JST || (this.JST = {});
this.JST["foo"] = function() { return "foo"; };
}).call(this);
EXPECTED
, $jst->render($this->ctx));
}