[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,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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue