/** * @expectedException \Snowcap\Emarsys\Exception\ClientException * @expectedExceptionMessage Unrecognized field name "non-existing-field-name" */ public function testItThrowsAnExceptionIfFieldDoesNotExist() { $this->client->getFieldId('non-existing-field-name'); }