public function testNotifyNoQualify() { $event = new Event('test'); $event->attach(new Stubs\EventObserverStubNoQualify()); $this->expectOutputString('STUB'); $this->assertCount(1, $event->getObservers(), '->attach() did not assign an observer to this event'); $this->assertSame($event, $event->notify(), '->notify() is not chainable'); }