diff options
Diffstat (limited to 'tests/legacy/LegacyLinkFilterTest.php')
-rw-r--r-- | tests/legacy/LegacyLinkFilterTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/legacy/LegacyLinkFilterTest.php b/tests/legacy/LegacyLinkFilterTest.php index 82bc93d8..45d7754d 100644 --- a/tests/legacy/LegacyLinkFilterTest.php +++ b/tests/legacy/LegacyLinkFilterTest.php | |||
@@ -197,10 +197,10 @@ class LegacyLinkFilterTest extends \Shaarli\TestCase | |||
197 | 197 | ||
198 | /** | 198 | /** |
199 | * Use an invalid date format | 199 | * Use an invalid date format |
200 | * @expectedException Exception | ||
201 | */ | 200 | */ |
202 | public function testFilterInvalidDayWithChars() | 201 | public function testFilterInvalidDayWithChars() |
203 | { | 202 | { |
203 | $this->expectException(\Exception::class); | ||
204 | $this->expectExceptionMessageRegExp('/Invalid date format/'); | 204 | $this->expectExceptionMessageRegExp('/Invalid date format/'); |
205 | 205 | ||
206 | self::$linkFilter->filter(LegacyLinkFilter::$FILTER_DAY, 'Rainy day, dream away'); | 206 | self::$linkFilter->filter(LegacyLinkFilter::$FILTER_DAY, 'Rainy day, dream away'); |
@@ -208,10 +208,10 @@ class LegacyLinkFilterTest extends \Shaarli\TestCase | |||
208 | 208 | ||
209 | /** | 209 | /** |
210 | * Use an invalid date format | 210 | * Use an invalid date format |
211 | * @expectedException Exception | ||
212 | */ | 211 | */ |
213 | public function testFilterInvalidDayDigits() | 212 | public function testFilterInvalidDayDigits() |
214 | { | 213 | { |
214 | $this->expectException(\Exception::class); | ||
215 | $this->expectExceptionMessageRegExp('/Invalid date format/'); | 215 | $this->expectExceptionMessageRegExp('/Invalid date format/'); |
216 | 216 | ||
217 | self::$linkFilter->filter(LegacyLinkFilter::$FILTER_DAY, '20'); | 217 | self::$linkFilter->filter(LegacyLinkFilter::$FILTER_DAY, '20'); |