Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Unit/Validator/UrlLikeTest.php')
-rw-r--r--tests/PHPUnit/Unit/Validator/UrlLikeTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/PHPUnit/Unit/Validator/UrlLikeTest.php b/tests/PHPUnit/Unit/Validator/UrlLikeTest.php
index c7ad364cac..76f8caf061 100644
--- a/tests/PHPUnit/Unit/Validator/UrlLikeTest.php
+++ b/tests/PHPUnit/Unit/Validator/UrlLikeTest.php
@@ -52,11 +52,12 @@ class UrlLikeTest extends \PHPUnit\Framework\TestCase
/**
* @dataProvider getFailedUrls
- * @expectedException \Piwik\Validators\Exception
- * @expectedExceptionMessage ValidatorErrorNotUrlLike
*/
public function test_validate_failValueIsNotUrlLike($url)
{
+ $this->expectException(\Piwik\Validators\Exception::class);
+ $this->expectExceptionMessage('ValidatorErrorNotUrlLike');
+
$this->validate($url);
}