mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
23 lines
439 B
PHP
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"
|