1--TEST--
2Testing imagelayereffect() of GD library
3--CREDITS--
4Rafael Dohms <rdohms [at] gmail [dot] com>
5#testfest PHPSP on 2009-06-20
6--EXTENSIONS--
7gd
8--SKIPIF--
9<?php
10    if (!GD_BUNDLED) die('skip function only available in bundled, external GD detected');
11?>
12--FILE--
13<?php
14$image = imagecreatetruecolor(180, 30);
15
16$layer = imagelayereffect($image, IMG_EFFECT_REPLACE);
17var_dump((bool) $layer);
18
19include_once __DIR__ . '/func.inc';
20test_image_equals_file(__DIR__ . '/imagelayereffect_basic.png', $image);
21?>
22--EXPECT--
23bool(true)
24The images are equal.
25