[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:
parent
21b3c06de6
commit
cadd97ac4f
47 changed files with 112 additions and 112 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue