xref: /PHP-7.4/Zend/tests/bug69891.phpt (revision e8217a27)
1--TEST--
2Bug #69891: Unexpected array comparison result
3--FILE--
4<?php
5
6var_dump([1, 2, 3] <=> []);
7var_dump([] <=> [1, 2, 3]);
8var_dump([1] <=> [2, 3]);
9--EXPECT--
10int(1)
11int(-1)
12int(-1)
13