File "secp256k1_ec_pubkey_parse_error2.phpt"
Full Path: /home/digidjwy/public_html/wp-content/plugins/mycryptocheckout/vendor/bitwasp/secp256k1-php/secp256k1/tests/secp256k1_ec_pubkey_parse_error2.phpt
File size: 463 bytes
MIME-type: text/plain
Charset: utf-8
--TEST--
secp256k1_ec_pubkey_parse errors if context is wrong resource type
--SKIPIF--
<?php
if (!extension_loaded("secp256k1")) print "skip extension not loaded";
?>
--FILE--
<?php
set_error_handler(function($code, $str) { echo $str . PHP_EOL; });
$result = secp256k1_ec_pubkey_parse();
echo gettype($result) . PHP_EOL;
echo ($result ? "true" : "false") . PHP_EOL;
?>
--EXPECT--
secp256k1_ec_pubkey_parse() expects exactly 3 parameters, 0 given
boolean
false