From: Marcus Boerger Date: Sat, 24 May 2003 17:10:34 +0000 (+0000) Subject: Add new test X-Git-Tag: RELEASE_1_0_2~606 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e035046ac2a6e969845a2f6c9f8efdcf0d5066c3;p=php Add new test --- diff --git a/ext/standard/tests/serialize/005.phpt b/ext/standard/tests/serialize/005.phpt new file mode 100755 index 0000000000..a209701585 --- /dev/null +++ b/ext/standard/tests/serialize/005.phpt @@ -0,0 +1,62 @@ +--TEST-- +Serialize and namespaces +--FILE-- + +--EXPECTF-- +#### 1 #### +object(foo:baz::bar)#1 (0) { +} +string(14) "O:3:"bar":0:{}" +object(__PHP_Incomplete_Class)#2 (1) { + ["__PHP_Incomplete_Class_Name"]=> + string(3) "bar" +} +#### 2 #### +string(14) "O:3:"baz":0:{}" +object(baz)#3 (0) { +} +#### 3 #### +object(__PHP_Incomplete_Class)#3 (1) { + ["__PHP_Incomplete_Class_Name"]=> + string(7) "binford" +} +#### 4 #### +object(power::binford)#3 (0) { +} +#### 5 #### + +Warning: unserialize(): Function autoload() hasn't defined the class it was called for in %s on line %d +object(__PHP_Incomplete_Class)#3 (1) { + ["__PHP_Incomplete_Class_Name"]=> + string(14) "idiot::binford" +}