public function testArrayColumn() { $filter = $this->app['twig']->getFilter('arrayColumn'); $read = call_user_func($filter->getCallable(), [['id' => 1], ['id' => 2], ['id' => 3]], 'id'); $expected = [1, 2, 3]; $this->assertSame($expected, $read); }