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/ConsoleRendererTest.php')
-rw-r--r--plugins/API/tests/Unit/ConsoleRendererTest.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/API/tests/Unit/ConsoleRendererTest.php b/plugins/API/tests/Unit/ConsoleRendererTest.php
index 3f3c4890d4..9aae115b56 100644
--- a/plugins/API/tests/Unit/ConsoleRendererTest.php
+++ b/plugins/API/tests/Unit/ConsoleRendererTest.php
@@ -24,7 +24,7 @@ class ConsoleRendererTest extends \PHPUnit\Framework\TestCase
*/
private $builder;
- public function setUp()
+ public function setUp(): void
{
$this->builder = $this->makeBuilder(array());
DataTable\Manager::getInstance()->deleteAll();
@@ -114,12 +114,11 @@ class ConsoleRendererTest extends \PHPUnit\Framework\TestCase
", $response);
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage Data structure returned is not convertible in the requested format
- */
public function test_renderArray_ShouldConvertMultiDimensionalAssociativeArrayToJson()
{
+ $this->expectException(\Exception::class);
+ $this->expectExceptionMessage('Data structure returned is not convertible in the requested format');
+
$input = array(
"firstElement" => "isFirst",
"secondElement" => array(