xref: /imagick/tests/bug21229.phpt (revision da75da78)
1--TEST--
2Test PECL bug #21229
3--SKIPIF--
4<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
5--FILE--
6<?php
7
8class ImagickTest extends Imagick {
9
10	/* Protected property */
11    protected $test;
12
13	/* Override width property */
14	public $width = 112233;
15
16    public function setTestValue($value) {
17        $this->test = $value;
18        return $this;
19    }
20
21    public function getTestValue() {
22        return $this->test;
23    }
24}
25
26$test = new ImagickTest("magick:logo");
27$test->setTestValue("test value");
28
29echo "Value: " , $test->getTestValue() , PHP_EOL;
30
31var_dump($test->width, $test->height);
32
33echo "OK" , PHP_EOL;
34
35
36?>
37--EXPECTF--
38Value: test value
39int(112233)
40int(%d)
41OK