php-src/ext/sqlite3/tests/sqlite3_31_open.phpt
Hannes Magnusson ebf4c8ddb8 Fix test
2009-05-18 13:52:16 +00:00

23 lines
439 B
PHP

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