summaryrefslogtreecommitdiff
path: root/Zend/tests/call_static_003.phpt
blob: 566ff0fdf220b4cd3e52eee7387d83da42617ded (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
34
35
36
37
38
--TEST--
Testing method name case
--FILE--
<?php

class Foo {
	public function __call($a, $b) {
		print "nonstatic\n";
		var_dump($a);
	}
	static public function __callStatic($a, $b) {
		print "static\n";
		var_dump($a);
	}
	public function test() {
		$this->fOoBaR();
		self::foOBAr();
		$this::fOOBAr();
	}
}

$a = new Foo;
$a->test();
$a::bAr();
foo::BAZ();

?>
--EXPECT--
nonstatic
string(6) "fOoBaR"
nonstatic
string(6) "foOBAr"
nonstatic
string(6) "fOOBAr"
static
string(3) "bAr"
static
string(3) "BAZ"