pdlib/tests/cnn_face_detection_ctor_error.phpt
Remi Collet cf0ce5a01e Fix and improve reflection
- 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
2020-06-22 16:22:37 +02:00

16 lines
326 B
PHP

--TEST--
Testing CnnFaceDetection constructor without arguments
--SKIPIF--
<?php if (!extension_loaded("pdlib")) print "skip"; ?>
--FILE--
<?php
try {
new CnnFaceDetection();
} catch (Error $e) {
var_dump($e->getMessage());
}
?>
--EXPECTF--
string(68) "CnnFaceDetection::__construct() expects exactly 1 parameter, 0 given"