public function methodCallOfUndefinedFunctionThrowsException() { $c = new Context(['arr' => ['func' => function ($arg) { return 42; }]]); $this->assertEvaluated(null, 'arr.funk("title")', $c); }