mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Add test 020 and 021 for PDO_SQLite.
This commit is contained in:
parent
27c43d5991
commit
4b4975f1f8
21
ext/pdo_sqlite/tests/pdo_020.phpt
Executable file
21
ext/pdo_sqlite/tests/pdo_020.phpt
Executable file
@ -0,0 +1,21 @@
|
||||
--TEST--
|
||||
PDO_SQLite: PDOStatement::columnCount
|
||||
--SKIPIF--
|
||||
<?php # vim:ft=php
|
||||
require_once('skipif.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
require_once('connection.inc');
|
||||
require_once('prepare.inc');
|
||||
|
||||
require_once($PDO_TESTS . 'pdo_020.inc');
|
||||
|
||||
?>
|
||||
===DONE===
|
||||
<?php exit(0); ?>
|
||||
--EXPECT--
|
||||
Counted 2 columns after select1.
|
||||
Counted 3 columns after select2.
|
||||
Counted 1 columns after select3.
|
||||
===DONE===
|
20
ext/pdo_sqlite/tests/pdo_021.phpt
Executable file
20
ext/pdo_sqlite/tests/pdo_021.phpt
Executable file
@ -0,0 +1,20 @@
|
||||
--TEST--
|
||||
PDO_SQLite: PDOStatement::execute with parameter markers.
|
||||
--SKIPIF--
|
||||
<?php # vim:ft=php
|
||||
require_once('skipif.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
require_once('connection.inc');
|
||||
require_once('prepare.inc');
|
||||
|
||||
require_once($PDO_TESTS . 'pdo_021.inc');
|
||||
|
||||
?>
|
||||
===DONE===
|
||||
<?php exit(0); ?>
|
||||
--EXPECT--
|
||||
There are 6 rows in the table.
|
||||
There are 12 rows in the table.
|
||||
===DONE===
|
Loading…
Reference in New Issue
Block a user