summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavey Shafik <davey@php.net>2020-10-27 09:17:01 +0000
committerGitHub <noreply@github.com>2020-10-27 09:17:01 +0000
commit46b4241970c0a6438fc185ef900201c8cec74ed3 (patch)
tree0c85bc0830d14df6a3e3b49011d7286933dc3631 /tests
parentc10173c42b022941d425a9a469cf73b5eba4e6fb (diff)
downloadphp7-mysql-shim-46b4241970c0a6438fc185ef900201c8cec74ed3.zip
php7-mysql-shim-46b4241970c0a6438fc185ef900201c8cec74ed3.tar.gz
php7-mysql-shim-46b4241970c0a6438fc185ef900201c8cec74ed3.tar.bz2
Correctly check error messages in test_mysql_function_invalid_result()
Diffstat (limited to 'tests')
-rw-r--r--tests/MySqlShimTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/MySqlShimTest.php b/tests/MySqlShimTest.php
index ae2bbbc..02f4404 100644
--- a/tests/MySqlShimTest.php
+++ b/tests/MySqlShimTest.php
@@ -687,10 +687,9 @@ class MySqlShimTest extends \Yoast\PHPUnitPolyfills\TestCases\TestCase
if ($args !== array()) {
array_unshift($args, null);
- $this->expectWarningMessageMatches('@' . __FILE__ . ':' . (__LINE__ + 1) . '@');
call_user_func_array($function, $args);
}
- $this->expectWarningMessageMatches('@' . __FILE__ . ':' . (__LINE__ + 1) . '@');
+
call_user_func($function, null);
}