Annotation of embedaddon/php/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_002.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: PDO_sqlite: Testing sqliteCreateFunction() produces warning when
! 3: un-callable function passed
! 4: --CREDITS--
! 5: Chris MacPherson chris@kombine.co.uk
! 6: --SKIPIF--
! 7: <?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
! 8: --FILE--
! 9: <?php
! 10:
! 11: $db = new PDO( 'sqlite::memory:');
! 12:
! 13: $db->sqliteCreateFunction('bar-alias', 'bar');
! 14:
! 15: ?>
! 16: --EXPECTF--
! 17: Warning: PDO::sqliteCreateFunction(): function 'bar' is not callable in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>