1--TEST--
2imagegetinterpolation() and imagesetinterpolation() basic test
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7$methods = array(
8    IMG_BELL,
9    IMG_BESSEL,
10    IMG_BILINEAR_FIXED,
11    IMG_BICUBIC,
12    IMG_BICUBIC_FIXED,
13    IMG_BLACKMAN,
14    IMG_BOX,
15    IMG_BSPLINE,
16    IMG_CATMULLROM,
17    IMG_GAUSSIAN,
18    IMG_GENERALIZED_CUBIC,
19    IMG_HERMITE,
20    IMG_HAMMING,
21    IMG_HANNING,
22    IMG_MITCHELL,
23    IMG_NEAREST_NEIGHBOUR,
24    IMG_POWER,
25    IMG_QUADRATIC,
26    IMG_SINC,
27    IMG_TRIANGLE,
28    IMG_WEIGHTED4,
29);
30$im = imagecreate(8, 8);
31foreach ($methods as $method) {
32    imagesetinterpolation($im, $method);
33    var_dump(imagegetinterpolation($im) === $method);
34}
35?>
36--EXPECT--
37bool(true)
38bool(true)
39bool(true)
40bool(true)
41bool(true)
42bool(true)
43bool(true)
44bool(true)
45bool(true)
46bool(true)
47bool(true)
48bool(true)
49bool(true)
50bool(true)
51bool(true)
52bool(true)
53bool(true)
54bool(true)
55bool(true)
56bool(true)
57bool(true)
58