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