From: Johannes Schlüter Date: Wed, 3 Dec 2008 11:00:19 +0000 (+0000) Subject: Fix tests (use a in-memory database not a file called memory) X-Git-Tag: BEFORE_HEAD_NS_CHANGES_MERGE~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8715eb0afade8866c85a64ee738aa909d52a58ca;p=php Fix tests (use a in-memory database not a file called memory) --- diff --git a/ext/pdo_sqlite/tests/bug44327_2.phpt b/ext/pdo_sqlite/tests/bug44327_2.phpt index 74ed3c118d..ea71c79134 100644 --- a/ext/pdo_sqlite/tests/bug44327_2.phpt +++ b/ext/pdo_sqlite/tests/bug44327_2.phpt @@ -7,7 +7,7 @@ if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; --FILE-- query('select 1 as queryString'); var_dump($x, $x->queryString); diff --git a/ext/pdo_sqlite/tests/bug44327_3.phpt b/ext/pdo_sqlite/tests/bug44327_3.phpt index 4d704c3d65..86f5642876 100644 --- a/ext/pdo_sqlite/tests/bug44327_3.phpt +++ b/ext/pdo_sqlite/tests/bug44327_3.phpt @@ -7,7 +7,7 @@ if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; --FILE-- query('select 1 as queryStringxx'); $y = $x->fetch(PDO::FETCH_LAZY); diff --git a/ext/pdo_sqlite/tests/debugdumpparams_001.phpt b/ext/pdo_sqlite/tests/debugdumpparams_001.phpt index c263eb143b..3e51b53237 100644 --- a/ext/pdo_sqlite/tests/debugdumpparams_001.phpt +++ b/ext/pdo_sqlite/tests/debugdumpparams_001.phpt @@ -7,7 +7,7 @@ if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; --FILE-- prepare('select :a, :b, ?'); $x->bindValue(':a', 1, PDO::PARAM_INT); diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt index aa268a9330..9596aea30b 100644 --- a/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt +++ b/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt @@ -3,7 +3,7 @@ PDO_sqlite: Testing sqliteCreateAggregate() --FILE-- query('CREATE TABLE IF NOT EXISTS foobar (id INT AUTO INCREMENT, name TEXT)'); diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt index 8a93002e67..c742c0a9e9 100644 --- a/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt +++ b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt @@ -3,7 +3,7 @@ PDO_sqlite: Testing sqliteCreateFunction() --FILE-- query('CREATE TABLE IF NOT EXISTS foobar (id INT AUTO INCREMENT, name TEXT)'); diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt index 8fc309d94b..a4ed2b5355 100644 --- a/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt +++ b/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt @@ -3,7 +3,7 @@ PDO_sqlite: Testing lastInsertId() --FILE-- query('CREATE TABLE IF NOT EXISTS foo (id INT AUTO INCREMENT, name TEXT)'); $db->query('INSERT INTO foo VALUES (NULL, "PHP")'); $db->query('INSERT INTO foo VALUES (NULL, "PHP6")'); diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt index 75f4169870..5247440511 100644 --- a/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt +++ b/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt @@ -3,7 +3,7 @@ PDO_sqlite: Testing transaction --FILE-- beginTransaction();