cf0ce5a01e
- use "p" for path (security check for nul byte) - fix number of args for some methods - add type hinting - throw standard exception (simplify) - fix test suite for PHP 7.0 to 8.0
15 lines
322 B
PHP
15 lines
322 B
PHP
--TEST--
|
|
Testing FaceRecognition constructor without arguments
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("pdlib")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
new FaceRecognition();
|
|
} catch (Error $e) {
|
|
var_dump($e->getMessage());
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
string(67) "FaceRecognition::__construct() expects exactly 1 parameter, 0 given"
|