mirror of
https://github.com/php/php-src.git
synced 2024-10-17 22:42:38 +00:00
41 lines
556 B
Plaintext
41 lines
556 B
Plaintext
|
--TEST--
|
||
|
Testing method name case
|
||
|
--XFAIL--
|
||
|
http://bugs.php.net/bug.php?id=45089
|
||
|
--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"
|