public function testCancel() { $e = new Event(null, 'test'); $this->assertFalse($e->isCancelled()); $e->cancel(); $this->assertTrue($e->isCancelled()); }