aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/lib/classes/SimpleCollectionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/lib/classes/SimpleCollectionTest.php')
-rw-r--r--tests/unit/lib/classes/SimpleCollectionTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/lib/classes/SimpleCollectionTest.php b/tests/unit/lib/classes/SimpleCollectionTest.php
index 1d236e1..e390157 100644
--- a/tests/unit/lib/classes/SimpleCollectionTest.php
+++ b/tests/unit/lib/classes/SimpleCollectionTest.php
@@ -251,11 +251,11 @@ class SimpleCollectionTest extends \Codeception\Test\Unit
/**
* @depends testConstruct
- * @expectedException InvalidArgumentException
- * @expectedExceptionMessage unknown operator: foo
*/
public function testInvalidCompOperatorException($a)
{
+ $this->expectException(\InvalidArgumentException::class);
+ $this->expectExceptionMessage('unknown operator: foo');
SimpleCollection::getCompFunc('foo', null);
}