attribute.test 232B

1234567891011
  1. --TEST--
  2. "attribute" function
  3. --TEMPLATE--
  4. {{ attribute(obj, method) }}
  5. {{ attribute(array, item) }}
  6. --DATA--
  7. return array('obj' => new Foo(), 'method' => 'foo', 'array' => array('foo' => 'bar'), 'item' => 'foo')
  8. --EXPECT--
  9. foo
  10. bar