/** * @covers addFunction */ public function testCustomFunction() { $registry = new FunctionRegistry(); $registry->addFunction('foobar', [$this, 'foobarCallable']); $registry->call('foobar', ['a', 'b']); }