[php] Fix widespread use of bare strings in testsuite

These generate warnings with PHP 7.3, which will become errors in a
future version.
This commit is contained in:
Olly Betts 2019-02-08 15:32:30 +13:00
commit cadd97ac4f
47 changed files with 112 additions and 112 deletions

View file

@ -4,15 +4,15 @@ require "tests.php";
require "add_link.php";
// No new functions, except the flat functions
check::functions(array(new_foo,foo_blah));
check::functions(array('new_foo','foo_blah'));
check::classes(array(Foo));
check::classes(array('Foo'));
$foo=new foo();
check::is_a($foo,foo);
check::is_a($foo,'foo');
$foo_blah=$foo->blah();
check::is_a($foo_blah,foo);
check::is_a($foo_blah,'foo');
//fails, can't be called as a class method, should allow and make it nil?
//$class_foo_blah=foo::blah();