/** * */ function test_call() { $model = new Model(); $service = new App([Arg::SERVICES => ['foo' => function () { return function ($bar) { return $bar; }; }]]); $model->service($service); $this->assertEquals('bar', $model->foo('bar')); }