public function testDetachEvent() { $func = function () { return 'Hello World'; }; $e = new Manager(); $e->attach('pre', $func, 2); $e->detach('pre', $func); $this->assertEquals(0, count($e->get('pre'))); }