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/Integration/Settings/Storage/Backend/MeasurableSettingsTableTest.php')
-rw-r--r--tests/PHPUnit/Integration/Settings/Storage/Backend/MeasurableSettingsTableTest.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/PHPUnit/Integration/Settings/Storage/Backend/MeasurableSettingsTableTest.php b/tests/PHPUnit/Integration/Settings/Storage/Backend/MeasurableSettingsTableTest.php
index f9572eb153..6b636cd687 100644
--- a/tests/PHPUnit/Integration/Settings/Storage/Backend/MeasurableSettingsTableTest.php
+++ b/tests/PHPUnit/Integration/Settings/Storage/Backend/MeasurableSettingsTableTest.php
@@ -41,7 +41,7 @@ class MeasurableSettingsTableTest extends IntegrationTestCase
*/
private $allBackends = array();
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
@@ -56,21 +56,19 @@ class MeasurableSettingsTableTest extends IntegrationTestCase
return new MeasurableSettingsTable($idSite, $plugin);
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage No plugin name given
- */
public function test_construct_shouldThrowAnException_IfPluginNameIsEmpty()
{
+ $this->expectException(\Exception::class);
+ $this->expectExceptionMessage('No plugin name given');
+
$this->createSettings(1, '');
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage No idSite given
- */
public function test_construct_shouldThrowAnException_IfIdSiteIsEmpty()
{
+ $this->expectException(\Exception::class);
+ $this->expectExceptionMessage('No idSite given');
+
$this->createSettings(0, 'MyPlugin');
}