/** * @expectedException RuntimeException */ public function testFilterFailsForInvalidCallback() { $xao = new XArray([1, 2]); // ArrayObject::count() is non-static and accepts no parameters // though the syntax for the callable is correct the execution will fail $xao->filter(['ArrayObject', 'count']); }