summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imagefontwidth_basic.phpt
blob: 2e3a5eb3caf4d98ed5a11dcc05c69897b2401dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Testing imagefontwidth() of GD library
--CREDITS--
Rafael Dohms <rdohms [at] gmail [dot] com>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
	if (!extension_loaded("gd")) die("skip GD not present");
?>
--FILE--
<?php
var_dump(imagefontwidth(1),imagefontwidth(2),imagefontwidth(3),imagefontwidth(4),imagefontwidth(5));
var_dump(imagefontwidth(1) < imagefontwidth(5));
?>
--EXPECT--
int(5)
int(6)
int(7)
int(8)
int(9)
bool(true)