From 81c793551d2bd6c2919a9a46462d464965c8207f Mon Sep 17 00:00:00 2001 From: George Petculescu Date: Mon, 31 May 2021 13:28:25 +0300 Subject: Adding PHPUnit 8 --- tests/mocks/ci_testcase.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'tests/mocks') diff --git a/tests/mocks/ci_testcase.php b/tests/mocks/ci_testcase.php index fbd56af03..de46f6df6 100644 --- a/tests/mocks/ci_testcase.php +++ b/tests/mocks/ci_testcase.php @@ -1,6 +1,6 @@ expectException($exception_class); + $exception_message !== '' && $this->expectExceptionMessage($exception_message); + } + else + { + parent::setExpectedException($exception_class, $exception_message, $exception_code); + } + } } -- cgit v1.2.3-24-g4f1b