summaryrefslogtreecommitdiffstats
path: root/test/php/library/Director/PropertyModifier/PropertyModifierListToObjectTest.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/php/library/Director/PropertyModifier/PropertyModifierListToObjectTest.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/php/library/Director/PropertyModifier/PropertyModifierListToObjectTest.php b/test/php/library/Director/PropertyModifier/PropertyModifierListToObjectTest.php
index 93d498c..0a150be 100644
--- a/test/php/library/Director/PropertyModifier/PropertyModifierListToObjectTest.php
+++ b/test/php/library/Director/PropertyModifier/PropertyModifierListToObjectTest.php
@@ -23,21 +23,19 @@ class PropertyModifierListToObjectTest extends BaseTestCase
);
}
- /**
- * @expectedException \InvalidArgumentException
- */
public function testFailsOnMissingKey()
{
+ $this->expectException(\InvalidArgumentException::class);
+
$input = $this->getInputArrays();
unset($input[0]['name']);
$this->getNewModifier()->transform($input);
}
- /**
- * @expectedException \InvalidArgumentException
- */
public function testFailsWithDuplicateRows()
{
+ $this->expectException(\InvalidArgumentException::class);
+
$input = $this->getInputArrays();
$input[1]['name'] = 'row1';
$this->getNewModifier()->transform($input);