Annotation of embedaddon/php/tests/classes/array_conversion_keys.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Verifies the correct conversion of objects to arrays
! 3: --FILE--
! 4: <?php
! 5: class foo
! 6: {
! 7: private $private = 'private';
! 8: protected $protected = 'protected';
! 9: public $public = 'public';
! 10: }
! 11: var_export((array) new foo);
! 12: ?>
! 13: --EXPECTF--
! 14: array (
! 15: '' . "\0" . 'foo' . "\0" . 'private' => 'private',
! 16: '' . "\0" . '*' . "\0" . 'protected' => 'protected',
! 17: 'public' => 'public',
! 18: )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>