xref: /PHP-5.5/Zend/tests/call_static_003.phpt (revision e3ced0b5)
1--TEST--
2Testing method name case
3--FILE--
4<?php
5
6class Foo {
7	public function __call($a, $b) {
8		print "nonstatic\n";
9		var_dump($a);
10	}
11	static public function __callStatic($a, $b) {
12		print "static\n";
13		var_dump($a);
14	}
15	public function test() {
16		$this->fOoBaR();
17		self::foOBAr();
18		$this::fOOBAr();
19	}
20}
21
22$a = new Foo;
23$a->test();
24$a::bAr();
25foo::BAZ();
26
27?>
28--EXPECT--
29nonstatic
30string(6) "fOoBaR"
31nonstatic
32string(6) "foOBAr"
33nonstatic
34string(6) "fOOBAr"
35static
36string(3) "bAr"
37static
38string(3) "BAZ"
39