[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
1eee194a88
commit
704ec59f29
47 changed files with 95 additions and 99 deletions
|
|
@ -3,16 +3,16 @@
|
|||
require "tests.php";
|
||||
require "arrays_global.php";
|
||||
|
||||
check::functions(array(test_a,test_b,new_simplestruct,new_material));
|
||||
check::classes(array(arrays_global,SimpleStruct,Material));
|
||||
check::functions(array('test_a','test_b','new_simplestruct','new_material'));
|
||||
check::classes(array('arrays_global','SimpleStruct','Material'));
|
||||
// The size of array_c is 2, but the last byte is \0, so we can only store a
|
||||
// single byte string in it.
|
||||
check::set(array_c,"Z");
|
||||
check::equal("Z",check::get(array_c),"set array_c");
|
||||
check::set(array_c,"xy");
|
||||
check::equal("x",check::get(array_c),"set array_c");
|
||||
check::set(array_c,"h");
|
||||
check::equal("h",check::get(array_c),"set array_c");
|
||||
check::set("array_c","Z");
|
||||
check::equal("Z",check::get("array_c"),"set array_c");
|
||||
check::set("array_c","xy");
|
||||
check::equal("x",check::get("array_c"),"set array_c");
|
||||
check::set("array_c","h");
|
||||
check::equal("h",check::get("array_c"),"set array_c");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue