/php-src/ext/pdo_firebird/tests/ |
H A D | transaction_isolation_level_attr.phpt | 18 'Pdo\\Firebird::READ_COMMITTED', 19 'Pdo\\Firebird::REPEATABLE_READ', 20 'Pdo\\Firebird::SERIALIZABLE', 93 OK: Pdo\Firebird::READ_COMMITTED 94 OK: Pdo\Firebird::REPEATABLE_READ 95 OK: Pdo\Firebird::SERIALIZABLE 97 Pdo\Firebird::TRANSACTION_ISOLATION_LEVEL must be a valid transaction isolation level (Pdo\Firebird… 101 OK: Pdo\Firebird::READ_COMMITTED 103 OK: Pdo\Firebird::REPEATABLE_READ 105 OK: Pdo\Firebird::SERIALIZABLE [all …]
|
H A D | attr_datetime_format.phpt | 16 echo 'ATTR_DATE_FORMAT: ', $dbh->getAttribute(Pdo\firebird::ATTR_DATE_FORMAT), "\n"; 17 echo 'ATTR_TIME_FORMAT: ', $dbh->getAttribute(Pdo\firebird::ATTR_TIME_FORMAT), "\n"; 18 echo 'ATTR_TIMESTAMP_FORMAT: ', $dbh->getAttribute(Pdo\firebird::ATTR_TIMESTAMP_FORMAT), "\n"; 20 $dbh->setAttribute(Pdo\firebird::ATTR_DATE_FORMAT, 'Y----m----d'); 21 $dbh->setAttribute(Pdo\firebird::ATTR_TIME_FORMAT, 'H::::i::::s'); 22 $dbh->setAttribute(Pdo\firebird::ATTR_TIMESTAMP_FORMAT, 'Y----m----d....H::::i::::s'); 27 echo 'ATTR_DATE_FORMAT: ', $dbh->getAttribute(Pdo\firebird::ATTR_DATE_FORMAT), "\n"; 28 echo 'ATTR_TIME_FORMAT: ', $dbh->getAttribute(Pdo\firebird::ATTR_TIME_FORMAT), "\n"; 29 echo 'ATTR_TIMESTAMP_FORMAT: ', $dbh->getAttribute(Pdo\firebird::ATTR_TIMESTAMP_FORMAT), "\n";
|
H A D | transaction_access_mode.phpt | 32 Pdo\Firebird::WRITABLE_TRANSACTION => $value['val'], 87 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true); 92 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true); 96 var_dump($dbh->getAttribute(Pdo\Firebird::WRITABLE_TRANSACTION)); 101 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false); 105 var_dump($dbh->getAttribute(Pdo\Firebird::WRITABLE_TRANSACTION)); 109 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false); 114 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true); 118 var_dump($dbh->getAttribute(Pdo\Firebird::WRITABLE_TRANSACTION)); 123 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false); [all …]
|
H A D | testdb.inc | 24 function connectToDb(): Pdo\Firebird { 25 …return Pdo\Firebird::connect(PDO_FIREBIRD_TEST_DSN, PDO_FIREBIRD_TEST_USER, PDO_FIREBIRD_TEST_PASS…
|
/php-src/ext/pdo_sqlite/tests/subclasses/ |
H A D | pdo_sqlite_constants.phpt | 9 var_dump(Pdo\Sqlite::DETERMINISTIC); 10 var_dump(Pdo\Sqlite::ATTR_OPEN_FLAGS); 11 var_dump(Pdo\Sqlite::OPEN_READONLY); 12 var_dump(Pdo\Sqlite::OPEN_READWRITE); 13 var_dump(Pdo\Sqlite::OPEN_CREATE); 14 var_dump(Pdo\Sqlite::ATTR_READONLY_STATEMENT); 15 var_dump(Pdo\Sqlite::ATTR_EXTENDED_RESULT_CODES);
|
H A D | gh_16131.phpt | 10 new Pdo\Pgsql('sqlite::memory:'); 15 class MyPgsql extends Pdo\Pgsql 27 Pdo\Pgsql::__construct() cannot be used for connecting to the "sqlite" driver, either call Pdo\Sqli… 28 MyPgsql::__construct() cannot be used for connecting to the "sqlite" driver, either call Pdo\Sqlite…
|
H A D | pdo_sqlite_createaggregate_arg_error.phpt | 2 Test Pdo\Sqlite::createAggregate() arguments error 10 $db = new Pdo\Sqlite('sqlite::memory:'); 57 Pdo\Sqlite::createAggregate(): Argument #1 ($name) must be of type string, null given 58 Pdo\Sqlite::createAggregate(): Argument #1 ($name) must be of type string, null given 59 Pdo\Sqlite::createAggregate(): Argument #1 ($name) must be of type string, null given 60 Pdo\Sqlite::createAggregate(): Argument #2 ($step) must be a valid callback, no array or string giv… 61 Pdo\Sqlite::createAggregate(): Argument #3 ($finalize) must be a valid callback, no array or string… 62 Pdo\Sqlite::createAggregate(): Argument #4 ($numArgs) must be of type int, null given
|
H A D | pdo_sqlite_createafunction_arg_error.phpt | 2 Test Pdo\Sqlite::createFunction() arguments error 10 $db = new Pdo\Sqlite('sqlite::memory:'); 45 Pdo\Sqlite::createFunction(): Argument #1 ($function_name) must be of type string, null given 46 Pdo\Sqlite::createFunction(): Argument #2 ($callback) must be a valid callback, no array or string … 47 Pdo\Sqlite::createFunction(): Argument #3 ($num_args) must be of type int, null given 48 Pdo\Sqlite::createFunction(): Argument #4 ($flags) must be of type int, null given
|
H A D | pdosqlite_002.phpt | 2 Pdo\Sqlite create through PDO::connect and function define. 8 $db = Pdo::connect('sqlite::memory:'); 9 if (!$db instanceof Pdo\Sqlite) { 10 echo "Wrong class type. Should be Pdo\Sqlite but is " . get_class($db) . "\n"; 17 $db->createFunction('testing', function($v) { return strtolower($v); }, 1, Pdo\Sqlite::DETERMINISTI…
|
H A D | pdosqlite_load_extension_failure.phpt | 2 Pdo\Sqlite load extension 7 if (!method_exists(Pdo\Sqlite::class, "loadExtension")) { 14 $db = Pdo\Sqlite::connect('sqlite::memory:'); 15 if (!$db instanceof Pdo\Sqlite) { 16 echo "Wrong class type. Should be Pdo\Sqlite but is " . get_class($db) . "\n";
|
H A D | pdo_sqlite_createcollation_arg_error.phpt | 2 Test Pdo\Sqlite::createCollation() arguments error 10 $db = new Pdo\Sqlite('sqlite::memory:'); 33 Pdo\Sqlite::createCollation(): Argument #1 ($name) must be of type string, null given 34 Pdo\Sqlite::createCollation(): Argument #2 ($callback) must be a valid callback, no array or string…
|
H A D | pdosqlite_005.phpt | 10 Pdo\Pgsql::connect('sqlite::memory:'); 17 Pdo\Pgsql::connect() cannot be used for connecting to the "sqlite" driver, either call Pdo\Sqlite::…
|
H A D | pdosqlite_003.phpt | 2 Pdo\Sqlite load extension 7 if (!method_exists(Pdo\Sqlite::class, "loadExtension")) { 26 $db = Pdo::connect('sqlite::memory:'); 27 if (!$db instanceof Pdo\Sqlite) { 28 echo "Wrong class type. Should be Pdo\Sqlite but is " . get_class($db) . "\n";
|
H A D | pdosqlite_001.phpt | 2 Pdo\Sqlite basic 8 $db = new Pdo\Sqlite('sqlite::memory:'); 15 $db->createFunction('testing', function($v) { return strtolower($v); }, 1, Pdo\Sqlite::DETERMINISTI…
|
H A D | pdo_sqlite_createaggregate_002.phpt | 9 $pdo = new Pdo\Sqlite('sqlite::memory:'); 24 Pdo\Sqlite::createAggregate(): Argument #2 ($step) must be a valid callback, function "a" not found… 25 Pdo\Sqlite::createAggregate(): Argument #3 ($finalize) must be a valid callback, function "" not fo…
|
H A D | gc.phpt | 15 $obj->a = Pdo::connect('sqlite::memory:'); 17 if (!$obj->a instanceof Pdo\Sqlite) { 18 echo "Wrong class type. Should be Pdo\Sqlite but is " . get_class($obj->a) . "]\n";
|
/php-src/ext/pdo_mysql/tests/ |
H A D | gh16314.phpt | 2 GH-16314 "Pdo\Mysql object is uninitialized" when opening a persistent connection 19 $pdo = MySQLPDOTest::factory(Pdo\Mysql::class, null, $attr, false); 22 $pdo = MySQLPDOTest::factory(Pdo\Mysql::class, null, $attr, true); 25 $pdo = MySQLPDOTest::factory(Pdo::class, null, $attr, false); 28 $pdo = MySQLPDOTest::factory(Pdo::class, null, $attr, true);
|
H A D | pdomysql_003.phpt | 15 $db = Pdo::connect(PDO_MYSQL_TEST_DSN, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS); 16 if (!$db instanceof Pdo\Mysql) { 17 echo "Wrong class type. Should be Pdo\Mysql but is " . get_class($db) . "\n";
|
H A D | pdomysql_002.phpt | 15 $db = Pdo::connect(PDO_MYSQL_TEST_DSN, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS); 16 if (!$db instanceof Pdo\Mysql) { 17 echo "Wrong class type. Should be Pdo\Mysql but is " . get_class($db) . "\n";
|
/php-src/ext/pdo_pgsql/tests/ |
H A D | gh16314.phpt | 2 GH-16314 "Pdo\Pgsql object is uninitialized" when opening a persistent connection 17 $pdo = PDOTest::test_factory(__DIR__ . '/common.phpt', Pdo\Pgsql::class, false); 20 $pdo = PDOTest::test_factory(__DIR__ . '/common.phpt', Pdo\Pgsql::class, true); 23 $pdo = PDOTest::test_factory(__DIR__ . '/common.phpt', Pdo::class, false); 26 $pdo = PDOTest::test_factory(__DIR__ . '/common.phpt', Pdo::class, true);
|
H A D | pdopgsql_003.phpt | 2 Pdo\Pgsql getWarningCount 16 $db = Pdo::connect($config['ENV']['PDOTEST_DSN']); 17 if (!$db instanceof Pdo\Pgsql) { 18 echo "Wrong class type. Should be Pdo\Pgsql but is " . get_class($db) . "\n";
|
H A D | pdopgsql_002.phpt | 2 Pdo\Pgsql connect through PDO::connect 16 $db = Pdo::connect($config['ENV']['PDOTEST_DSN']); 17 if (!$db instanceof Pdo\Pgsql) { 18 echo "Wrong class type. Should be Pdo\Pgsql but is " . get_class($db) . "\n";
|
H A D | pdopgsql_setNoticeCallback_trampoline_no_leak.phpt | 2 Pdo\Pgsql::setNoticeCallback() use F ZPP for trampoline callback and does not leak 16 $db = new Pdo\Pgsql($config['ENV']['PDOTEST_DSN']); 23 $rc = new ReflectionClass(Pdo\Pgsql::class); 36 [ null, [ $t, 'disp' ] ], // Valid callback on an unvalid Pdo.
|
/php-src/ext/pdo_dblib/tests/ |
H A D | pdodblib_002.phpt | 2 Pdo\Dblib create through PDO::connect 16 if (!$db instanceof Pdo\Dblib) { 17 echo "Wrong class type. Should be Pdo\Dblib but is " . get_class($db) . "\n";
|
/php-src/ext/pdo_odbc/tests/ |
H A D | pdoodbc_002.phpt | 15 $db = Pdo\Odbc::connect($config['ENV']['PDOTEST_DSN'], $config['ENV']['PDOTEST_USER'], $config['ENV… 16 if (!$db instanceof Pdo\Odbc) { 17 echo "Wrong class type. Should be Pdo\Odbc but is " . get_class($db) . "\n";
|