// SYSTEM PANEL //
[ROOT]
/
opt
/
alt
/
tests
/
alt-php85-pecl-vips_1.0.13-1.el8
/
tests
[ PARENT ]
EDIT :: 006.phpt
--TEST-- vips_call supports optional input and output args --SKIPIF-- <?php if (!extension_loaded("vips")) print "skip"; ?> --FILE-- <?php $point = vips_call("black", NULL, 1, 1)["out"]; $image = vips_call("embed", $point, 10, 20, 100, 100, ["extend" => "white"])["out"]; $result = vips_call("min", $image, ["x" => true, "y" => true]); if ($result["out"] == 0 && $result["x"] == 10 && $result["y"] == 20) { echo("pass\n"); } ?> --EXPECT-- pass
SAVE
CANCEL