mirror of
https://github.com/php/php-src.git
synced 2026-04-18 21:41:22 +02:00
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
18 lines
496 B
PHP
18 lines
496 B
PHP
--TEST--
|
|
Bug #75437 Wrong reflection on imagewebp
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('gd')) die('skip gd extension not available');
|
|
if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.0', '<')) die("skip test requires GD 2.2.0 or higher");
|
|
if (!function_exists('imagewebp')) die('skip WebP support not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$rf = new ReflectionFunction('imagewebp');
|
|
var_dump($rf->getNumberOfParameters());
|
|
var_dump($rf->getNumberOfRequiredParameters());
|
|
?>
|
|
--EXPECT--
|
|
int(3)
|
|
int(1)
|