public function testStop() { $event = new Event('foo'); $event->addCallback(function ($event) { $event->stop(); return 1; }); $event->addCallback(function () { return 2; }); $this->assertSame(1, $event->call()); }