Seemed easier than trying to figure out how to force the prompt to accept the unknown IP (perhaps not possible at all as it is part of SSH?). `yes` didn't work, unfortunately.
19 lines
305 B
PHP
Executable file
19 lines
305 B
PHP
Executable file
--TEST--
|
|
rename_method() and user-defined functions
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('test_helpers')) die('skip test_helpers extension not loaded');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
class A {
|
|
static function foo()
|
|
{
|
|
print 'foo';
|
|
}
|
|
}
|
|
|
|
rename_method('A', 'foo', 'bar');
|
|
A::bar();
|
|
--EXPECT--
|
|
foo
|