php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt
Máté Kocsis d1764ca330
Make error messages more consistent by fixing capitalization
Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
2020-01-17 14:52:46 +01:00

17 lines
489 B
PHP

--TEST--
PDO_sqlite: Testing invalid callback for sqliteCreateAggregate()
--SKIPIF--
<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
--FILE--
<?php
$pdo = new PDO('sqlite::memory:');
$pdo->sqliteCreateAggregate('foo', 'a', '');
$pdo->sqliteCreateAggregate('foo', 'strlen', '');
?>
--EXPECTF--
Warning: PDO::sqliteCreateAggregate(): Function 'a' is not callable in %s on line %d
Warning: PDO::sqliteCreateAggregate(): Function '' is not callable in %s on line %d