PATH:
opt
/
alt
/
tests
/
alt-php85-pecl-uuid_1.2.0-1.el8
/
tests
--TEST-- uuid_is_null() function --SKIPIF-- <?php if(!extension_loaded('uuid')) die('skip '); ?> --FILE-- <?php var_dump(uuid_is_null("00000000-0000-0000-0000-000000000000")); var_dump(uuid_is_null("b691c99c-7fc5-11d8-9fa8-00065b896488")); try { if (!uuid_is_null("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")) { echo "OK\n"; } } catch (ValueError $e) { echo $e->getMessage() . "\n"; // PHP 8 echo "OK\n"; } ?> --EXPECTF-- bool(true) bool(false) %A Argument #1 ($uuid) UUID expected%AOK
[-] uuid_generate_md5.phpt
[edit]
[-] uuid_compare.phpt
[edit]
[-] uuid_type.phpt
[edit]
[-] uuid_mac.phpt
[edit]
[-] uuid_is_null.phpt
[edit]
[-] uuid_variant.phpt
[edit]
[-] uuid_create.phpt
[edit]
[+]
..
[-] uuid_is_valid.phpt
[edit]
[-] uuid_time.phpt
[edit]
[-] uuid_unparse.phpt
[edit]
[-] uuid_generate_sha1.phpt
[edit]
[-] uuid_parse.phpt
[edit]