Arquivos
php-opencv/tests/opencv_exception.phpt
T
Vladimir Goncharov d2c775b860 delete test while can suspend warning:
[ WARN:0@0.014] global loadsave.cpp:244 findDecoder imread_('non-existent.png'): can't open/read file: check file path/integrity
2023-03-31 02:44:18 +03:00

18 linhas
320 B
PHP

--TEST--
Exception
--SKIPIF--
<?php if (!extension_loaded("opencv")) print "skip"; ?>
--FILE--
<?php
use function CV\imread;
/*try{
imread('non-existent.png');
}catch(CV\Exception $e){
echo $e->getMessage();
exit;
}*/
?>
Can not load image : non-existent.png
--EXPECT--
Can not load image : non-existent.png