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/API/tests/Unit/OriginalRendererTest.php')
-rw-r--r--plugins/API/tests/Unit/OriginalRendererTest.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/API/tests/Unit/OriginalRendererTest.php b/plugins/API/tests/Unit/OriginalRendererTest.php
index d9977fd3a5..4543836f07 100644
--- a/plugins/API/tests/Unit/OriginalRendererTest.php
+++ b/plugins/API/tests/Unit/OriginalRendererTest.php
@@ -22,7 +22,7 @@ class OriginalRendererTest extends \PHPUnit\Framework\TestCase
*/
private $builder;
- public function setUp()
+ public function setUp(): void
{
$this->builder = $this->makeBuilder(array());
}
@@ -34,12 +34,11 @@ class OriginalRendererTest extends \PHPUnit\Framework\TestCase
$this->assertTrue($response);
}
- /**
- * @expectedException \BadMethodCallException
- * @expectedExceptionMessage The other message
- */
public function test_renderException_shouldThrowTheException()
{
+ $this->expectException(\BadMethodCallException::class);
+ $this->expectExceptionMessage('The other message');
+
$this->builder->renderException('This message should be ignored', new \BadMethodCallException('The other message'));
}