Lines Matching refs:test
2 ZE2 factory and singleton, test 2
7 class test {
10 static private $test = NULL;
14 if (test::$test) {
15 return test::$test;
17 test::$test = new test($x);
18 return test::$test;
23 test::$cnt++;
28 test::$test = NULL;
32 test::$cnt--;
40 if (test::$test) {
41 return test::$test->x;
48 return test::$cnt;
53 var_dump(test::getX());
54 var_dump(test::count());
57 $x = test::factory(1);
58 $y = test::factory(2);
59 var_dump(test::getX());
60 var_dump(test::count());
66 var_dump(test::getX());
67 var_dump(test::count());
72 var_dump(test::getX());
73 var_dump(test::count());
76 //test::destroy();
77 //var_dump(test::getX());
78 //var_dump(test::count());
100 Warning: Call to protected test::__destruct() from context '' during shutdown ignored in Unknown on…