1--TEST--
2get_class_vars(): Simple test
3--FILE--
4<?php
5
6class A {
7    public $a = 1;
8    private $b = 2;
9    private $c = 3;
10}
11
12class B extends A {
13    static public $aa = 4;
14    static private $bb = 5;
15    static protected $cc = 6;
16}
17
18
19var_dump(get_class_vars('A'));
20var_dump(get_class_vars('B'));
21
22try {
23    get_class_vars("Unknown");
24} catch (Error $e) {
25    echo $e->getMessage(), "\n";
26}
27
28?>
29--EXPECT--
30array(1) {
31  ["a"]=>
32  int(1)
33}
34array(2) {
35  ["a"]=>
36  int(1)
37  ["aa"]=>
38  int(4)
39}
40get_class_vars(): Argument #1 ($class) must be a valid class name, Unknown given
41