Lines Matching refs:test
2 ZE2 factory and singleton, test 2
5 class test {
8 static private $test = NULL;
12 if (test::$test) {
13 return test::$test;
15 test::$test = new test($x);
16 return test::$test;
21 test::$cnt++;
26 test::$test = NULL;
30 test::$cnt--;
38 if (test::$test) {
39 return test::$test->x;
46 return test::$cnt;
51 var_dump(test::getX());
52 var_dump(test::count());
55 $x = test::factory(1);
56 $y = test::factory(2);
57 var_dump(test::getX());
58 var_dump(test::count());
64 var_dump(test::getX());
65 var_dump(test::count());
70 var_dump(test::getX());
71 var_dump(test::count());
74 //test::destroy();
75 //var_dump(test::getX());
76 //var_dump(test::count());
98 Warning: Call to protected test::__destruct() from context '' during shutdown ignored in Unknown on…