Skip to content

Commit 798907f

Browse files
committed
#195 - Fix tests in PHP7.x
1 parent 137fcb1 commit 798907f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/classes/use-trait-docblock.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ echo "uses count: " . count($def["uses"]) . "\n";
2828
echo "uses[0] type: " . $def["uses"][0]["type"] . "\n";
2929
echo "uses[0] trait[0]: " . $def["uses"][0]["traits"][0]["value"] . "\n";
3030
echo "has docblock: " . var_export(array_key_exists("docblock", $def["uses"][0]), true) . "\n";
31-
echo "docblock mentions counting: " . var_export(str_contains($def["uses"][0]["docblock"], "counting behavior"), true) . "\n";
31+
echo "docblock mentions counting: " . var_export(strpos($def["uses"][0]["docblock"], "counting behavior") !== false, true) . "\n";
3232
?>
3333
--EXPECT--
3434
uses count: 1

0 commit comments

Comments
 (0)