Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit c17be41

Browse files
authored
use method call expectException
1 parent 3930b2f commit c17be41

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/ArrayUtilsTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -513,11 +513,9 @@ public function testFiltersArray($data, $callback, $flag, $result)
513513
$this->assertEquals($result, ArrayUtils::filter($data, $callback, $flag));
514514
}
515515

516-
/**
517-
* @expectedException InvalidArgumentException
518-
*/
519516
public function testInvalidCallableRaiseInvalidArgumentException()
520517
{
518+
$this->expectException(InvalidArgumentException::class);
521519
ArrayUtils::filter([], "INVALID");
522520
}
523521
}

0 commit comments

Comments
 (0)