Annotation of embedaddon/php/ext/sqlite3/tests/sqlite3_31_open.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SQLite3::re-initialize object tests
! 3: --CREDITS--
! 4: Jelle Lampaert
! 5: #Belgian Testfest 2009
! 6: --SKIPIF--
! 7: <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
! 8: --FILE--
! 9: <?php
! 10:
! 11: try {
! 12: $db = new SQLite3(__DIR__ . '/db1.db');
! 13: $db->open(__DIR__ . '/db1.db');
! 14: } catch (Exception $ex) {
! 15: var_dump($ex->getMessage());
! 16: }
! 17:
! 18: ?>
! 19: --CLEAN--
! 20: <?php @unlink(__DIR__ . '/db1.db'); ?>
! 21: --EXPECTF--
! 22: %string|unicode%(29) "Already initialised DB Object"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>