From a04c8c0b842f171222f790a26df3d0182a285d0d Mon Sep 17 00:00:00 2001 From: Jellyfrog Date: Tue, 21 Apr 2020 14:27:13 +0200 Subject: [PATCH] Replace deprecated @expectedException (#11451) Deprecated in phpunit 8 --- tests/RrdDefinitionTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/RrdDefinitionTest.php b/tests/RrdDefinitionTest.php index 0c1936edcf..10c75f2216 100644 --- a/tests/RrdDefinitionTest.php +++ b/tests/RrdDefinitionTest.php @@ -36,11 +36,9 @@ class RrdDefinitionTest extends TestCase $this->assertEmpty((string)new RrdDefinition()); } - /** - * @expectedException \LibreNMS\Exceptions\InvalidRrdTypeException - */ public function testWrongType() { + $this->expectException(\LibreNMS\Exceptions\InvalidRrdTypeException::class); Config::set('rrd.step', 300); Config::set('rrd.heartbeat', 600); $def = new RrdDefinition();