/** * @covers ::after */ public function testAfter() { $container = new Container(); $definition = $container->bind(Stub\FooInterface::class, Stub\Foo::class); $closure = function () { }; $container->after(Stub\FooInterface::class, $closure); $this->assertAttributeEquals([$closure], 'afters', $definition); }