Skip to content

Instantly share code, notes, and snippets.

@Tyrael
Created May 15, 2011 23:34
Show Gist options
  • Save Tyrael/973681 to your computer and use it in GitHub Desktop.
Save Tyrael/973681 to your computer and use it in GitHub Desktop.
php src tests
Index: ext/standard/tests/file/bug39863.phpt
===================================================================
--- ext/standard/tests/file/bug39863.phpt (revision 311062)
+++ ext/standard/tests/file/bug39863.phpt (working copy)
@@ -14,11 +14,6 @@
echo "PASS\n";
}
?>
-===DONE===
<?php exit(0); ?>
---XFAIL--
-Needs bug #39863 fixed
--EXPECT--
PASS
-===DONE===
-
Index: ext/standard/tests/serialize/serialization_objects_001.phpt
===================================================================
--- ext/standard/tests/serialize/serialization_objects_001.phpt (revision 311062)
+++ ext/standard/tests/serialize/serialization_objects_001.phpt (working copy)
@@ -1,5 +1,7 @@
--TEST--
Test serialize() & unserialize() functions: objects
+--INI--
+serialize_precision=100
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
Index: ext/standard/tests/serialize/serialization_objects_003.phpt
===================================================================
--- ext/standard/tests/serialize/serialization_objects_003.phpt (revision 311062)
+++ ext/standard/tests/serialize/serialization_objects_003.phpt (working copy)
@@ -1,5 +1,7 @@
--TEST--
Test serialize() & unserialize() functions: objects (abstract classes)
+--INI--
+serialize_precision=100
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
@@ -64,4 +66,4 @@
string(18) "s:10:"extendName";"
string(10) "extendName"
-Done
\ No newline at end of file
+Done
Index: ext/standard/tests/serialize/001.phpt
===================================================================
--- ext/standard/tests/serialize/001.phpt (revision 311062)
+++ ext/standard/tests/serialize/001.phpt (working copy)
@@ -1,5 +1,7 @@
--TEST--
serialize()/unserialize()/var_dump()
+--INI--
+serialize_precision=100
--FILE--
<?php
class t
Index: ext/standard/tests/serialize/serialization_objects_002.phpt
===================================================================
--- ext/standard/tests/serialize/serialization_objects_002.phpt (revision 311062)
+++ ext/standard/tests/serialize/serialization_objects_002.phpt (working copy)
@@ -1,5 +1,7 @@
--TEST--
Test serialize() & unserialize() functions: objects (variations)
+--INI--
+serialize_precision=100
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
@@ -319,4 +321,4 @@
NULL
}
-Done
\ No newline at end of file
+Done
Index: ext/standard/tests/serialize/serialization_arrays_001.phpt
===================================================================
--- ext/standard/tests/serialize/serialization_arrays_001.phpt (revision 311062)
+++ ext/standard/tests/serialize/serialization_arrays_001.phpt (working copy)
@@ -1,5 +1,7 @@
--TEST--
Test serialize() & unserialize() functions: arrays (circular references)
+--INI--
+serialize_precision=100
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
Index: ext/standard/tests/network/gethostbynamel_error.phpt
===================================================================
--- ext/standard/tests/network/gethostbynamel_error.phpt (revision 311062)
+++ ext/standard/tests/network/gethostbynamel_error.phpt (working copy)
@@ -19,7 +19,6 @@
$hostname = 'string_val';
$extra_arg = 10;
var_dump( gethostbynamel($hostname, $extra_arg) );
-
echo "Done";
?>
--EXPECTF--
@@ -34,5 +33,4 @@
Warning: gethostbynamel() expects exactly 1 parameter, 2 given in %s on line %d
NULL
-
Done
Index: ext/date/tests/DateInterval_format_a.phpt
===================================================================
--- ext/date/tests/DateInterval_format_a.phpt (revision 311062)
+++ ext/date/tests/DateInterval_format_a.phpt (working copy)
@@ -4,7 +4,10 @@
Daniel Convissor <[email protected]>
# TestFest 2010 BKTK
--SKIPIF--
-<?php if (!method_exists('DateInterval', 'format')) die("skip: method doesn't exist"); ?>
+<?php
+if (!method_exists('DateInterval', 'format')) die("skip: method doesn't exist");
+if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
+?>
--XFAIL--
Windows VC6 libs' floor()/ceil() choke on floats
--FILE--
Index: ext/date/tests/bug51994.phpt
===================================================================
--- ext/date/tests/bug51994.phpt (revision 311062)
+++ ext/date/tests/bug51994.phpt (working copy)
@@ -1,5 +1,7 @@
--TEST--
Bug #51994 (date_parse_from_format is parsing invalid date using 'yz' format)
+--XFAIL--
+Bug #51994 isn't fixed yet
--FILE--
<?php
$trans_date = '10153'; // 152nd day of year 2010 -> 03.06.2010
@@ -35,4 +37,4 @@
}
["is_localtime"]=>
bool(false)
-}
\ No newline at end of file
+}
Index: ext/date/tests/bug51819.phpt
===================================================================
--- ext/date/tests/bug51819.phpt (revision 311062)
+++ ext/date/tests/bug51819.phpt (working copy)
@@ -1,5 +1,7 @@
--TEST--
Bug #51819 (Case discrepancy in timezone names cause Uncaught exception and fatal error)
+--XFAIL--
+Bug #51819 isn't fixed yet
--FILE--
<?php
date_default_timezone_set('UTC');
@@ -30,4 +32,4 @@
var_dump('this should be the only output');
?>
--EXPECTF--
-string(30) "this should be the only output"
\ No newline at end of file
+string(30) "this should be the only output"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment