/**
* Class LegacyLinkFilterTest.
*/
-class LegacyLinkFilterTest extends \PHPUnit\Framework\TestCase
+class LegacyLinkFilterTest extends \Shaarli\TestCase
{
/**
* @var string Test datastore path.
/**
* Use an invalid date format
- * @expectedException Exception
*/
public function testFilterInvalidDayWithChars()
{
+ $this->expectException(\Exception::class);
$this->expectExceptionMessageRegExp('/Invalid date format/');
self::$linkFilter->filter(LegacyLinkFilter::$FILTER_DAY, 'Rainy day, dream away');
/**
* Use an invalid date format
- * @expectedException Exception
*/
public function testFilterInvalidDayDigits()
{
+ $this->expectException(\Exception::class);
$this->expectExceptionMessageRegExp('/Invalid date format/');
self::$linkFilter->filter(LegacyLinkFilter::$FILTER_DAY, '20');