1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-27 04:14:51 +01:00
ext-pq/tests/res001.phpt
Michael Wallner 1b5358df41
fix tests
2016-05-17 12:13:20 +02:00

108 lines
1.9 KiB
PHP

--TEST--
empty result
--SKIPIF--
<?php
include "_skipif.inc";
?>
--FILE--
<?php
echo "Test\n";
include "_setup.inc";
set_error_handler(function($code, $error, $file, $line) {
printf("\nWarning: %s in %s on line %d\n", $error, $file, $line);
return true;
}, E_RECOVERABLE_ERROR);
class r extends pq\Result {
public $dummy = 2;
}
var_dump(new pq\Result, get_object_vars(new r));
?>
Done
--EXPECTF--
Test
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
object(pq\Result)#%d (9) {
["status"]=>
NULL
["statusMessage"]=>
NULL
["errorMessage"]=>
NULL
["diag"]=>
NULL
["numRows"]=>
int(0)
["numCols"]=>
int(0)
["affectedRows"]=>
int(0)
["fetchType"]=>
int(0)
["autoConvert"]=>
int(65535)
}
array(10) {
["dummy"]=>
int(2)
["status"]=>
NULL
["statusMessage"]=>
NULL
["errorMessage"]=>
NULL
["diag"]=>
NULL
["numRows"]=>
int(0)
["numCols"]=>
int(0)
["affectedRows"]=>
int(0)
["fetchType"]=>
int(0)
["autoConvert"]=>
int(65535)
}
Done