summaryrefslogtreecommitdiffstats
path: root/test/php/library/Director/IcingaConfig/IcingaConfigHelperTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/php/library/Director/IcingaConfig/IcingaConfigHelperTest.php')
-rw-r--r--test/php/library/Director/IcingaConfig/IcingaConfigHelperTest.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/php/library/Director/IcingaConfig/IcingaConfigHelperTest.php b/test/php/library/Director/IcingaConfig/IcingaConfigHelperTest.php
index 506f3b8..10cd644 100644
--- a/test/php/library/Director/IcingaConfig/IcingaConfigHelperTest.php
+++ b/test/php/library/Director/IcingaConfig/IcingaConfigHelperTest.php
@@ -18,11 +18,10 @@ class IcingaConfigHelperTest extends BaseTestCase
$this->assertEquals(c::parseInterval('1h 5m 60s'), 3960);
}
- /**
- * @expectedException \InvalidArgumentException
- */
public function testWhetherInvalidIntervalStringRaisesException()
{
+ $this->expectException(\InvalidArgumentException::class);
+
c::parseInterval('1h 5m 60x');
}