From 59dd1979ef8edc2586b551b0686f57ddfa159160 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 8 Mar 2019 09:45:24 +0100 Subject: More zpp error/variation test removals --- .../tests/sqlite3_openblob_wrongparams.phpt | 79 ---------------------- 1 file changed, 79 deletions(-) delete mode 100644 ext/sqlite3/tests/sqlite3_openblob_wrongparams.phpt (limited to 'ext/sqlite3/tests/sqlite3_openblob_wrongparams.phpt') diff --git a/ext/sqlite3/tests/sqlite3_openblob_wrongparams.phpt b/ext/sqlite3/tests/sqlite3_openblob_wrongparams.phpt deleted file mode 100644 index 03242d935b..0000000000 --- a/ext/sqlite3/tests/sqlite3_openblob_wrongparams.phpt +++ /dev/null @@ -1,79 +0,0 @@ ---TEST-- -SQLite3::blobOpen test, testing stream with wrong parameter count ---CREDITS-- -Michelangelo van Dam -# Belgian PHP Testfest 2009 ---SKIPIF-- - ---FILE-- -position = 0; - return true; - } - - public function stream_read($count) - { - $ret = substr(self::$string, $this->position, $count); - $this->position += strlen($ret); - return $ret; - } - - public function stream_write($data) - { - return 0; - } - - public function stream_stat() - { - return array('size' => self::$string_length); - } - - public function stream_tell() - { - return $this->position; - } - - public function stream_eof() - { - return ($this->position >= self::$string_length); - } -} - -$db = new SQLite3(':memory:'); -stream_wrapper_register('sqliteBlobTest', "SQLite3_Test_Stream") or die("Unable to register sqliteBlobTest stream"); -echo "Creating table: " . var_export($db->exec('CREATE TABLE test (id STRING, data BLOB)'),true) . "\n"; - -echo "PREPARING insert\n"; -$insert_stmt = $db->prepare("INSERT INTO test (id, data) VALUES (?, ?)"); - -echo "BINDING Parameters:\n"; -var_dump($insert_stmt->bindValue(1, 'a', SQLITE3_TEXT)); -var_dump($insert_stmt->bindValue(2, 'TEST TEST', SQLITE3_BLOB)); -$insert_stmt->execute(); -echo "Closing statement: " . var_export($insert_stmt->close(), true) . "\n"; - -echo "Open BLOB with wrong parameter count\n"; -$stream = $db->openBlob(); -var_dump($stream); -echo "Done\n"; -?> ---EXPECTF-- -Creating table: true -PREPARING insert -BINDING Parameters: -bool(true) -bool(true) -Closing statement: true -Open BLOB with wrong parameter count - -Warning: SQLite3::openBlob() expects at least 3 parameters, 0 given in %s on line %d -NULL -Done -- cgit v1.2.1