public function testInvalidRegexException() { $e = new InvalidRegexException('foo'); $this->assertEquals('The format of the regular expression "foo" is invalid', $e->getMessage(), 'A message should be generated'); }