xref: /PHP-7.3/ext/gd/tests/image2wbmp_error.phpt (revision 3cbf594d)
1--TEST--
2image2wbmp() is deprecated
3--SKIPIF--
4<?php
5if (!extension_loaded('gd')) die('skip gd extension not available');
6?>
7--FILE--
8<?php
9$im = imagecreate(10, 10);
10imagecolorallocate($im, 0, 0, 0);
11image2wbmp($im, __DIR__ . '/image2wbmp_error.wbmp');
12?>
13===DONE===
14--CLEAN--
15<?php
16unlink(__DIR__ . '/image2wbmp_error.wbmp');
17?>
18--EXPECTF--
19Deprecated: Function image2wbmp() is deprecated in %s on line %d
20===DONE===
21