From: Marco Pivetta Date: Thu, 20 Jun 2013 08:17:32 +0000 (+0200) Subject: Adding test to stabelize keys used when converting objects to arrays X-Git-Tag: php-5.4.18RC1~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61fb822d1a474d475d3e608ba60541d5b79029cf;p=php Adding test to stabelize keys used when converting objects to arrays --- diff --git a/tests/classes/array_conversion_keys.phpt b/tests/classes/array_conversion_keys.phpt new file mode 100644 index 0000000000..e3bd7e0331 --- /dev/null +++ b/tests/classes/array_conversion_keys.phpt @@ -0,0 +1,18 @@ +--TEST-- +Verifies the correct conversion of objects to arrays +--FILE-- + +--EXPECTF-- +array ( + '' . "\0" . 'foo' . "\0" . 'private' => 'private', + '' . "\0" . '*' . "\0" . 'protected' => 'protected', + 'public' => 'public', +)