2018-08-25 06:51:46 +08:00
|
|
|
--TEST--
|
|
|
|
Testing FaceLandmarkDetection constructor without arguments
|
|
|
|
--SKIPIF--
|
|
|
|
<?php if (!extension_loaded("pdlib")) print "skip"; ?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
try {
|
|
|
|
new FaceLandmarkDetection();
|
2020-06-22 22:22:37 +08:00
|
|
|
} catch (Error $e) {
|
2018-08-25 06:51:46 +08:00
|
|
|
var_dump($e->getMessage());
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
new FaceLandmarkDetection("non-existent file");
|
|
|
|
} catch (Exception $e) {
|
|
|
|
var_dump($e->getMessage());
|
|
|
|
}
|
|
|
|
?>
|
2019-11-29 06:14:34 +08:00
|
|
|
--EXPECTF--
|
2020-06-22 22:22:37 +08:00
|
|
|
string(73) "FaceLandmarkDetection::__construct() expects exactly 1 parameter, 0 given"
|
2019-11-29 06:14:34 +08:00
|
|
|
string(45) "Unable to open non-existent file for reading."
|