mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Add user contributed test. Bug #61748
This commit is contained in:
parent
4590070f31
commit
cb13f8318b
1 changed files with 17 additions and 0 deletions
17
ext/pdo_sqlite/tests/pdo_sqlite_createfunction_002.phpt
Normal file
17
ext/pdo_sqlite/tests/pdo_sqlite_createfunction_002.phpt
Normal file
|
@ -0,0 +1,17 @@
|
|||
--TEST--
|
||||
PDO_sqlite: Testing sqliteCreateFunction() produces warning when
|
||||
un-callable function passed
|
||||
--CREDITS--
|
||||
Chris MacPherson chris@kombine.co.uk
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$db = new PDO( 'sqlite::memory:');
|
||||
|
||||
$db->sqliteCreateFunction('bar-alias', 'bar');
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: PDO::sqliteCreateFunction(): function 'bar' is not callable in %s on line %d
|
Loading…
Add table
Add a link
Reference in a new issue