namespace Shaarli\Bookmark;
use Exception;
-use PHPUnit\Framework\TestCase;
use ReferenceLinkDB;
use Shaarli\Config\ConfigManager;
use Shaarli\History;
+use Shaarli\TestCase;
/**
* Class BookmarkFilterTest.
/**
* Use an invalid date format
- * @expectedException Exception
*/
public function testFilterInvalidDayWithChars()
{
+ $this->expectException(\Exception::class);
$this->expectExceptionMessageRegExp('/Invalid date format/');
self::$linkFilter->filter(BookmarkFilter::$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(BookmarkFilter::$FILTER_DAY, '20');