php-src/ext/sqlite3/tests/sqlite3_31_open.phpt

23 lines
439 B
Plaintext
Raw Normal View History

2009-05-17 16:51:22 +00:00
--TEST--
SQLite3::re-initialize object tests
--CREDITS--
Jelle Lampaert
#Belgian Testfest 2009
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php
try {
2009-05-18 13:52:05 +00:00
$db = new SQLite3(__DIR__ . '/db1.db');
$db->open(__DIR__ . '/db1.db');
2009-05-17 16:51:22 +00:00
} catch (Exception $ex) {
var_dump($ex->getMessage());
}
?>
2009-05-18 13:52:05 +00:00
--CLEAN--
<?php @unlink(__DIR__ . '/db1.db'); ?>
2009-05-17 16:51:22 +00:00
--EXPECTF--
%string|unicode%(29) "Already initialised DB Object"