public function testSum() { $data = array(1, 2, 3, 4); $this->check(10, '{{ data|sum() }}', array('data' => $data)); }