[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 704ec59f29
47 changed files with 95 additions and 99 deletions

View file

@ -3,11 +3,11 @@ require "tests.php";
require "li_carrays_cpp.php";
// Check functions.
check::functions(array(new_intarray,delete_intarray,intarray_getitem,intarray_setitem,doublearray_getitem,doublearray_setitem,doublearray_cast,doublearray_frompointer,xyarray_getitem,xyarray_setitem,xyarray_cast,xyarray_frompointer,delete_abarray,abarray_getitem,abarray_setitem,shortarray_getitem,shortarray_setitem,shortarray_cast,shortarray_frompointer,sum_array));
check::functions(array('new_intarray','delete_intarray','intarray_getitem','intarray_setitem','doublearray_getitem','doublearray_setitem','doublearray_cast','doublearray_frompointer','xyarray_getitem','xyarray_setitem','xyarray_cast','xyarray_frompointer','delete_abarray','abarray_getitem','abarray_setitem','shortarray_getitem','shortarray_setitem','shortarray_cast','shortarray_frompointer','sum_array'));
// Check classes.
// NB An "li_carrays_cpp" class is created as a mock namespace.
check::classes(array(li_carrays_cpp,doubleArray,AB,XY,XYArray,shortArray));
check::classes(array('li_carrays_cpp','doubleArray','AB','XY','XYArray','shortArray'));
$d = new doubleArray(10);