Skip to content

Commit

Permalink
Fix test regarding ZPP TypeErrors
Browse files Browse the repository at this point in the history
We simply remove the second call to `odbc_data_source` since it is
testing standard ZPP behavior.
  • Loading branch information
cmb69 committed Aug 28, 2019
1 parent 3f339ec commit afb69b6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ext/odbc/tests/odbc_data_source_001.phpt
Expand Up @@ -15,16 +15,12 @@ include 'config.inc';
$conn = odbc_connect($dsn, $user, $pass);

var_dump(odbc_data_source($conn, NULL));
var_dump(odbc_data_source($conn, ''));
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)

Warning: odbc_data_source() expects parameter 2 to be int, string given in %s on line %d
NULL
array(%d) {
%a
}

0 comments on commit afb69b6

Please sign in to comment.