diff options
author | Felipe Pena <felipe@php.net> | 2009-07-01 00:51:26 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-07-01 00:51:26 +0000 |
commit | 51b78f63065587511929b1d75e797825ac739c81 (patch) | |
tree | 60fbb65c5d6cecfa03b1cbd07a0d3e6d54c8bdaf /ext/gd/tests/imagefontwidth_basic.phpt | |
parent | 7ef811e1df31dec9f695bf256fb1792cd80b9c51 (diff) | |
download | php-git-51b78f63065587511929b1d75e797825ac739c81.tar.gz |
- New tests (SaoPaulo UG testfest)
Diffstat (limited to 'ext/gd/tests/imagefontwidth_basic.phpt')
-rw-r--r-- | ext/gd/tests/imagefontwidth_basic.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/gd/tests/imagefontwidth_basic.phpt b/ext/gd/tests/imagefontwidth_basic.phpt new file mode 100644 index 0000000000..0a9df52095 --- /dev/null +++ b/ext/gd/tests/imagefontwidth_basic.phpt @@ -0,0 +1,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) |