Files
pdlib/tests/cnn_face_detection_ctor_error.phpt
2019-11-28 23:14:34 +01:00

16 lines
396 B
PHP

--TEST--
Testing CnnFaceDetection constructor without arguments
--SKIPIF--
<?php if (!extension_loaded("pdlib")) print "skip"; ?>
--FILE--
<?php
try {
new CnnFaceDetection();
} catch (Exception $e) {
var_dump($e->getMessage());
}
?>
--EXPECTF--
Warning: CnnFaceDetection::__construct() expects exactly 1 parameter, 0 given in %s on line 3
string(41) "Unable to parse face_detection_model_path"