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 'plugins/Marketplace/tests/Integration/Input/PluginNameTest.php')
-rw-r--r--plugins/Marketplace/tests/Integration/Input/PluginNameTest.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/Marketplace/tests/Integration/Input/PluginNameTest.php b/plugins/Marketplace/tests/Integration/Input/PluginNameTest.php
index fe0e3a2fbc..24ad6b6c97 100644
--- a/plugins/Marketplace/tests/Integration/Input/PluginNameTest.php
+++ b/plugins/Marketplace/tests/Integration/Input/PluginNameTest.php
@@ -19,7 +19,7 @@ use Piwik\Tests\Framework\TestCase\IntegrationTestCase;
*/
class PluginNameTest extends IntegrationTestCase
{
- public function tearDown()
+ public function tearDown(): void
{
unset($_GET['pluginName']);
}
@@ -32,12 +32,11 @@ class PluginNameTest extends IntegrationTestCase
$this->assertSame('CoreFooBar', $pluginName->getPluginName());
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage Invalid plugin name given
- */
public function test_throws_exception_ifInvalidName()
{
+ $this->expectException(\Exception::class);
+ $this->expectExceptionMessage('Invalid plugin name given');
+
$this->setPluginName('CoreFooBar-?4');
$pluginName = new PluginName();