/** * */ function test_bind() { $resolver = new Resolver(); $config = new Config(); $callback = function () { return $this; }; $scoped = $resolver->bind($callback, $config); $this->assertInstanceOf(\Closure::class, $scoped); $this->assertTrue($config === $scoped()); }