From 7ef87e3fbd6089cf265d8aa57ad78dc20e6df6ee Mon Sep 17 00:00:00 2001 From: rxu Date: Fri, 14 Aug 2020 04:24:06 +0700 Subject: [PATCH] [ticket/16512] Adjust test to use better assertions PHPBB3-16512 --- tests/functions_user/whois_test.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/functions_user/whois_test.php b/tests/functions_user/whois_test.php index 02cd3a5ebd..b99854ba60 100644 --- a/tests/functions_user/whois_test.php +++ b/tests/functions_user/whois_test.php @@ -44,8 +44,8 @@ class phpbb_functions_user_whois_test extends phpbb_test_case public function test_ip_whois($ip) { $ip_whois = user_ipwhois($ip); - $this->assertNotContains('Query terms are ambiguous', $ip_whois); - $this->assertNotContains('no entries found', $ip_whois); - $this->assertNotContains('ERROR', $ip_whois); + $this->assertStringNotContainsString('Query terms are ambiguous', $ip_whois); + $this->assertStringNotContainsString('no entries found', $ip_whois); + $this->assertStringNotContainsString('ERROR', $ip_whois); } }