Replace deprecated @expectedException (#11451)

Deprecated in phpunit 8
This commit is contained in:
Jellyfrog
2020-04-21 14:27:13 +02:00
committed by GitHub
parent 52e1187314
commit a04c8c0b84

View File

@@ -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();