diff options
Diffstat (limited to 'ext/pdo_sqlite/tests')
-rw-r--r-- | ext/pdo_sqlite/tests/bug33841.phpt | 28 | ||||
-rw-r--r-- | ext/pdo_sqlite/tests/bug35336.phpt | 26 | ||||
-rw-r--r-- | ext/pdo_sqlite/tests/common.phpt | 12 |
3 files changed, 0 insertions, 66 deletions
diff --git a/ext/pdo_sqlite/tests/bug33841.phpt b/ext/pdo_sqlite/tests/bug33841.phpt deleted file mode 100644 index d472af770e..0000000000 --- a/ext/pdo_sqlite/tests/bug33841.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -PDO SQLite Bug #33841 (rowCount() does not work on prepared statements) ---SKIPIF-- -<?php # vim:ft=php -if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; -?> ---FILE-- -<?php -require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc'; -$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt'); - -$db->exec('CREATE TABLE test (text)'); - -$stmt = $db->prepare("INSERT INTO test VALUES ( :text )"); -$stmt->bindParam(':text', $name); -$name = 'test1'; -var_dump($stmt->execute(), $stmt->rowCount()); - -$stmt = $db->prepare("UPDATE test SET text = :text "); -$stmt->bindParam(':text', $name); -$name = 'test2'; -var_dump($stmt->execute(), $stmt->rowCount()); - ---EXPECT-- -bool(true) -int(1) -bool(true) -int(1) diff --git a/ext/pdo_sqlite/tests/bug35336.phpt b/ext/pdo_sqlite/tests/bug35336.phpt deleted file mode 100644 index 59dbda38ba..0000000000 --- a/ext/pdo_sqlite/tests/bug35336.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -Bug #35336 (crash on PDO::FETCH_CLASS + __set()) ---SKIPIF-- -<?php # vim:ft=php -if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; -?> ---FILE-- -<?php -class EEE { - function __set ($field, $value) { - echo "hello world\n"; - } -} - -$a = new PDO("sqlite::memory:");// pool ("sqlite::memory:"); -$a->query ("CREATE TABLE test (a integer primary key, b text)"); -$b = $a->prepare("insert into test (b) values (?)"); -$b->execute(array (5)); -$rez = $a->query ("SELECT * FROM test")->fetchAll(PDO::FETCH_CLASS, 'EEE'); - -echo "Done\n"; -?> ---EXPECTF-- -hello world -hello world -Done diff --git a/ext/pdo_sqlite/tests/common.phpt b/ext/pdo_sqlite/tests/common.phpt deleted file mode 100644 index 65ea0c96f4..0000000000 --- a/ext/pdo_sqlite/tests/common.phpt +++ /dev/null @@ -1,12 +0,0 @@ ---TEST-- -SQLite ---SKIPIF-- -<?php # vim:ft=php -if (!extension_loaded('pdo_sqlite')) print 'skip'; ?> ---REDIRECTTEST-- -return array( - 'ENV' => array( - 'PDOTEST_DSN' => 'sqlite::memory:' - ), - 'TESTS' => 'ext/pdo/tests' - ); |