/** * */ 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')); }
/** * */ function test_construct_template_const() { $model = new Model(); $this->assertEquals('baz', $model->template()); }