let DEV_2 be trunk
[m6w6/ext-http] / tests / header003.phpt
diff --git a/tests/header003.phpt b/tests/header003.phpt
new file mode 100644 (file)
index 0000000..d02e7e7
--- /dev/null
@@ -0,0 +1,23 @@
+--TEST--
+header serialize
+--SKIPIF--
+<?php 
+include "skipif.inc";
+?>
+--FILE--
+<?php
+
+echo "Test\n";
+
+$h = new http\Header("foo", "bar");
+var_dump("Foo: bar" === (string) unserialize(serialize($h)));
+$h = new http\Header(123, 456);
+var_dump("123: 456" === (string) unserialize(serialize($h)));
+
+?>
+Done
+--EXPECT--
+Test
+bool(true)
+bool(true)
+Done