[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,16 +4,16 @@ require "tests.php";
require "director_finalizer.php";
// No new functions
check::functions(array(foo_orstatus,deletefoo,getstatus,launder,resetstatus));
check::functions(array('foo_orstatus','deletefoo','getstatus','launder','resetstatus'));
// No new classes
check::classes(array(director_finalizer,Foo));
check::classes(array('director_finalizer','Foo'));
// now new vars
check::globals(array());
class MyFoo extends Foo {
function __destruct() {
$this->orStatus(2);
if (method_exists(parent, "__destruct")) {
if (method_exists(get_parent_class(), "__destruct")) {
parent::__destruct();
}
}