13 lines
280 B
Plaintext
Executable File
13 lines
280 B
Plaintext
Executable File
--TEST--
|
|
"attribute" function
|
|
--TEMPLATE--
|
|
{{ attribute(obj, method) }}
|
|
{{ attribute(array, item) }}
|
|
{{ attribute(obj, "bar", ["a", "b"]) }}
|
|
--DATA--
|
|
return array('obj' => new Foo(), 'method' => 'foo', 'array' => array('foo' => 'bar'), 'item' => 'foo')
|
|
--EXPECT--
|
|
foo
|
|
bar
|
|
bar_a-b
|