summaryrefslogtreecommitdiff
path: root/Zend/tests/get_class_vars_001.phpt
blob: 3066f8eba50aeec2af2c91d9f1c54b62c7f9c1ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--TEST--
get_class_vars(): Simple test
--FILE--
<?php

class A {
	public $a = 1;
	private $b = 2;
	private $c = 3;
}

class B extends A {
	static public $aa = 4;
	static private $bb = 5;
	static protected $cc = 6;
}


var_dump(get_class_vars('A'));
var_dump(get_class_vars('B'));

?>
--EXPECT--
array(1) {
  [u"a"]=>
  int(1)
}
array(2) {
  [u"a"]=>
  int(1)
  [u"aa"]=>
  int(4)
}