1--TEST-- 2Ensures an exception is thrown if versions are compared with an invalid operator 3--CREDITS-- 4David Stockton - <dave@davidstockton.com> - i3logix PHP Testfest 2017 5--FILE-- 6<?php 7try { 8 version_compare('1.2', '2.1', '??'); 9} catch (ValueError $exception) { 10 echo $exception->getMessage() . "\n"; 11} 12?> 13--EXPECT-- 14version_compare(): Argument #3 ($operator) must be a valid comparison operator 15