diff options
-rwxr-xr-x | test/it_text.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/it_text.t b/test/it_text.t index 6726996..bbf727b 100755 --- a/test/it_text.t +++ b/test/it_text.t @@ -8,6 +8,9 @@ $obj->y->z = "attr"; is(it_text::transmogrify(""), ""); is(it_text::transmogrify("foo"), "foo"); +$GLOBALS['foo'] = 'bar'; +is(it_text::transmogrify("{foo}"), "bar"); # Value from GLOBALS +$GLOBALS['foo'] = ''; is(it_text::transmogrify("{foo}"), ""); is(it_text::transmogrify("{foo}", array('foo' => 1)), "1"); is(it_text::transmogrify("{foo}{foo}", array('foo' => 1)), "11"); |