From: Sander Roobol Date: Fri, 8 Mar 2002 19:16:19 +0000 (+0000) Subject: Fixed many tests, mostly incorrect paths. X-Git-Tag: help~125 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58a52f93bc28a8c789c2320e138d69bbd4b045a6;p=php Fixed many tests, mostly incorrect paths. --- diff --git a/ext/exif/tests/002.phpt b/ext/exif/tests/002.phpt index 687090e74e..d9e2298a5d 100644 --- a/ext/exif/tests/002.phpt +++ b/ext/exif/tests/002.phpt @@ -11,16 +11,16 @@ Check for exif_thumbnail test2.jpg is the same image but contains Exif/Comment information and a copy of test1.jpg as a thumbnail. */ -$istat= stat('test1.jpg'); -$fp = fopen('test1.jpg','r'); +$istat= stat('./ext/exif/tests/test1.jpg'); +$fp = fopen('./ext/exif/tests/test1.jpg','r'); $image = fread($fp,$istat[7]); echo substr($image,490,5).'_'.$istat[7]; fclose($fp); -$thumb = exif_thumbnail('test2.jpg'); +$thumb = exif_thumbnail('./ext/exif/tests/test2.jpg'); echo strcmp($image,$thumb) ? 'different' : '_identical_'; echo strlen($thumb); echo '_'.substr($thumb,490,5); /* 7GWgw_523_identical_523_7GWgw */ ?> --EXPECT-- -7GWgw_523_identical_523_7GWgw \ No newline at end of file +7GWgw_523_identical_523_7GWgw diff --git a/ext/gmp/tests/002.phpt b/ext/gmp/tests/002.phpt index 2f32450474..4e33b6111d 100644 --- a/ext/gmp/tests/002.phpt +++ b/ext/gmp/tests/002.phpt @@ -5,7 +5,7 @@ GMP functionality test - factorial --POST-- --GET-- --FILE-- - --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --POST-- a=Hello+World --GET-- diff --git a/tests/basic/003.phpt b/tests/basic/003.phpt index 9c105f7398..dfc714a8fc 100644 --- a/tests/basic/003.phpt +++ b/tests/basic/003.phpt @@ -1,5 +1,7 @@ --TEST-- GET and POST Method combined +--SKIPIF-- + --POST-- a=Hello+World --GET-- diff --git a/tests/basic/004.phpt b/tests/basic/004.phpt index b7e50e0f33..694034ae90 100644 --- a/tests/basic/004.phpt +++ b/tests/basic/004.phpt @@ -1,5 +1,7 @@ --TEST-- Two variables in POST data +--SKIPIF-- + --POST-- a=Hello+World&b=Hello+Again+World --GET-- diff --git a/tests/basic/005.phpt b/tests/basic/005.phpt index 651b83d81a..d7bd145ccd 100644 --- a/tests/basic/005.phpt +++ b/tests/basic/005.phpt @@ -1,5 +1,7 @@ --TEST-- Three variables in POST data +--SKIPIF-- + --POST-- a=Hello+World&b=Hello+Again+World&c=1 --GET--