PATH:
opt
/
alt
/
tests
/
alt-php84-pecl-vips_1.0.13-1.el8
/
tests
--TEST-- new_from_array works --SKIPIF-- <?php if (!extension_loaded("vips")) print "skip"; ?> --FILE-- <?php $image = vips_image_new_from_array([1, 2, 3]); $width1 = vips_image_get($image, "width")["out"]; $height1 = vips_image_get($image, "height")["out"]; $image = vips_image_new_from_array([[1, 2, 3], [4, 5, 6]]); $width2 = vips_image_get($image, "width")["out"]; $height2 = vips_image_get($image, "height")["out"]; if ($width1 == 3 && $height1 == 1 && $width2 = 3 && $height2 == 2) { echo "pass"; } ?> --EXPECT-- pass
[-] 003.phpt
[edit]
[-] 032.phpt
[edit]
[-] 042.phpt
[edit]
[-] 001.phpt
[edit]
[-] 006.phpt
[edit]
[-] 017.phpt
[edit]
[-] 038.phpt
[edit]
[-] 029.phpt
[edit]
[-] 007.phpt
[edit]
[-] 014.phpt
[edit]
[-] 012.phpt
[edit]
[-] 041.phpt
[edit]
[-] 010.phpt
[edit]
[-] 013.phpt
[edit]
[-] 030.phpt
[edit]
[-] 035.phpt
[edit]
[-] 004.phpt
[edit]
[-] 026.phpt
[edit]
[-] 027.phpt
[edit]
[+]
..
[-] 036.phpt
[edit]
[-] 002.phpt
[edit]
[-] 040.phpt
[edit]
[-] 009.phpt
[edit]
[-] 037.phpt
[edit]
[-] 031.phpt
[edit]
[-] 005.phpt
[edit]
[-] 008.phpt
[edit]
[-] 028.phpt
[edit]
[-] 011.phpt
[edit]
[+]
images
[-] 039.phpt
[edit]
[-] 015.phpt
[edit]
[-] 016.phpt
[edit]
[-] 033.phpt
[edit]
[-] 034.phpt
[edit]