Skip to content

Commit

Permalink
Make tests portable across PHP 7.x versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbj committed Sep 24, 2018
1 parent 338802b commit 3d497f8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ext/oci8/tests/bug51291_1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ array(4) {

Test 2 - Parse

Warning: oci_error() expects parameter 1 to be resource, boolean given in %sbug51291_1.php on line %d
Warning: oci_error() expects parameter 1 to be resource, bool%sgiven in %sbug51291_1.php on line %d
bool(false)
array(4) {
["code"]=>
Expand All @@ -182,7 +182,7 @@ array(4) {
NULL
2nd call

Warning: oci_error() expects parameter 1 to be resource, boolean given in %sbug51291_1.php on line %d
Warning: oci_error() expects parameter 1 to be resource, bool%sgiven in %sbug51291_1.php on line %d
bool(false)
array(4) {
["code"]=>
Expand Down
4 changes: 2 additions & 2 deletions ext/oci8/tests/lob_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ object(OCI-Lob)#%d (1) {
}
int(0)

Warning: OCI-Lob::write() expects parameter 2 to be integer, string given in %slob_002.php on line %d
Warning: OCI-Lob::write() expects parameter 2 to be int%s string given in %slob_002.php on line %d
NULL
int(4)
int(40000)
int(40004)

Warning: OCI-Lob::seek() expects parameter 1 to be integer, string given in %slob_002.php on line %d
Warning: OCI-Lob::seek() expects parameter 1 to be int%s string given in %slob_002.php on line %d
NULL
bool(false)
int(40004)
Expand Down
2 changes: 1 addition & 1 deletion ext/oci8/tests/lob_026.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ NULL
bool(true)
int(3)

Warning: oci_lob_seek() expects parameter 1 to be OCI-Lob, integer given in %s on line %d
Warning: oci_lob_seek() expects parameter 1 to be OCI-Lob, int%sgiven in %s on line %d
NULL
bool(true)
array(2) {
Expand Down
2 changes: 1 addition & 1 deletion ext/oci8/tests/privileged_connect.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ Warning: oci_connect(): Privileged connect is disabled. Enable oci8.privileged_c

Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d

Warning: oci_connect() expects parameter 5 to be integer, string given in %s on line %d
Warning: oci_connect() expects parameter 5 to be int%s string given in %s on line %d
Done
2 changes: 1 addition & 1 deletion ext/oci8/tests/privileged_connect1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ Warning: oci_connect(): ORA-%d: %s in %s on line %d

Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d

Warning: oci_connect() expects parameter 5 to be integer, string given in %s on line %d
Warning: oci_connect() expects parameter 5 to be int%s string given in %s on line %d
Done

0 comments on commit 3d497f8

Please sign in to comment.