blob: 6c642f1f85058b55e2881948b4aca548612c85cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--TEST--
Verifies the correct conversion of objects to arrays
--FILE--
<?php
class foo
{
private $private = 'private';
protected $protected = 'protected';
public $public = 'public';
}
var_export((array) new foo);
?>
--EXPECT--
array (
'' . "\0" . 'foo' . "\0" . 'private' => 'private',
'' . "\0" . '*' . "\0" . 'protected' => 'protected',
'public' => 'public',
)
|