/** * @expectedException \Bayer\DataDogClient\Event\InvalidAlertTypeException */ public function testInvalidTypeThrowsException() { $event = new Event('Text', 'Title'); $event->setAlertType('foo'); }