]> granicus.if.org Git - php/commitdiff
Fix test
authorHannes Magnusson <bjori@php.net>
Mon, 18 May 2009 13:52:05 +0000 (13:52 +0000)
committerHannes Magnusson <bjori@php.net>
Mon, 18 May 2009 13:52:05 +0000 (13:52 +0000)
ext/sqlite3/tests/sqlite3_31_open.phpt

index 3d93ca48fbe0ea6205effb2cfddf6f1fb0155169..b30266b7eeeae786c57f2429740a967c3ee01770 100644 (file)
@@ -9,12 +9,14 @@ Jelle Lampaert
 <?php
 
 try {
-  $db = new SQLite3('db1.db');
-  $db->open('db1.db');
+  $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"