mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Add test for null return on version_compare with bad operator
This commit is contained in:
parent
c5f9855283
commit
e1dd8cd678
1 changed files with 12 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
--TEST--
|
||||
Ensures null is returned if versions are compared with invalid operator
|
||||
--CREDITS--
|
||||
David Stockton - <dave@davidstockton.com> - i3logix PHP Testfest 2017
|
||||
--SKIPIF--
|
||||
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(version_compare('1.2', '2.1', '??'));
|
||||
?>
|
||||
--EXPECT--
|
||||
NULL
|
Loading…
Add table
Add a link
Reference in a new issue