Skip to content

Commit

Permalink
Fix test after PDOStatement::fetchObject() change
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Aug 13, 2020
1 parent 396b470 commit b03e300
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Zend/tests/bug70914.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ if (!extension_loaded("pdo_sqlite")) {

$db = new PDO('sqlite::memory:');
$st = $db->query('SELECT 1');
$re = $st->fetchObject('%Z');
try {
$re = $st->fetchObject('%Z');
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECTREGEX--
Fatal error: Class "%Z" not found in .+bug70914.php on line \d+
--EXPECT--
PDOStatement::fetchObject(): Argument #1 ($class_name) must be a valid class name, %Z given

0 comments on commit b03e300

Please sign in to comment.