1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
--TEST-- var_export() and classes --FILE-- <?php class kake { public $mann; protected $kvinne; function __construct() { $this->mann = 42; $this->kvinne = 43; } } $kake = new kake; var_export($kake); ?> --EXPECT-- kake::__set_state(array( 'mann' => 42, 'kvinne' => 43, ))