xref: /PHP-8.0/ext/gd/tests/bug70047.phpt (revision 450fbdc7)
1--TEST--
2Bug #70047 (gd_info() doesn't report WebP support)
3--SKIPIF--
4<?php
5if (!extension_loaded('gd')) die('skip gd extension not available');
6?>
7--FILE--
8<?php
9$info = gd_info();
10var_dump(array_key_exists('WebP Support', $info));
11var_dump($info['WebP Support'] === function_exists('imagewebp'));
12?>
13--EXPECT--
14bool(true)
15bool(true)
16