1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 19:52:20 +02:00
Files
archived-php-src/ext/odbc/tests/odbc_data_source_001.phpt
Christoph M. Becker afb69b6f2d Fix test regarding ZPP TypeErrors
We simply remove the second call to `odbc_data_source` since it is
testing standard ZPP behavior.
2019-08-28 16:45:05 +02:00

27 lines
487 B
PHP

--TEST--
odbc_data_source(): Basic test
--SKIPIF--
<?php
include 'skipif.inc';
if (odbc_data_source($conn, SQL_FETCH_FIRST) === NULL) {
die("skip no data sources defined on this system");
}
?>
--FILE--
<?php
include 'config.inc';
$conn = odbc_connect($dsn, $user, $pass);
var_dump(odbc_data_source($conn, NULL));
var_dump(odbc_data_source($conn, SQL_FETCH_FIRST));
?>
--EXPECTF--
Warning: odbc_data_source(): Invalid fetch type (0) in %s on line %d
bool(false)
array(%d) {
%a
}