~ubuntu-branches/ubuntu/quantal/php5/quantal

« back to all changes in this revision

Viewing changes to ext/standard/tests/image/getimagesize_xbm.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Sean Finney
  • Date: 2009-07-01 09:12:10 UTC
  • mto: (0.9.1) (1.1.17 upstream)
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: james.westby@ubuntu.com-20090701091210-go0h6506p62on17r
Tags: upstream-5.3.0
ImportĀ upstreamĀ versionĀ 5.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
GetImageSize() for xbm format
 
3
--SKIPIF--
 
4
<?php
 
5
        if (!defined("IMAGETYPE_XBM")) {
 
6
                die("skip xbm file format is not available");
 
7
        }
 
8
?>
 
9
--FILE--
 
10
<?php
 
11
/* Prototype  : proto array getimagesize(string imagefile [, array info])
 
12
 * Description: Get the size of an image as 4-element array 
 
13
 * Source code: ext/standard/image.c
 
14
 * Alias to functions: 
 
15
 */
 
16
 
 
17
echo "*** Testing getimagesize() : xbm format ***\n";
 
18
var_dump(getimagesize(dirname(__FILE__) . "/75x50.xbm", $arr));
 
19
var_dump($arr);
 
20
 
 
21
?>
 
22
===DONE===
 
23
--EXPECT--
 
24
*** Testing getimagesize() : xbm format ***
 
25
array(5) {
 
26
  [0]=>
 
27
  int(75)
 
28
  [1]=>
 
29
  int(50)
 
30
  [2]=>
 
31
  int(16)
 
32
  [3]=>
 
33
  string(22) "width="75" height="50""
 
34
  ["mime"]=>
 
35
  string(9) "image/xbm"
 
36
}
 
37
array(0) {
 
38
}
 
39
===DONE===