Skip to content

Commit 2f5229c

Browse files
committed
MFH: skip BFILE tests if Oracle is not on localhost
1 parent dc64595 commit 2f5229c

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

ext/oci8/tests/connect.inc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
<?php
22

3-
/*
4-
* Please, change user, password and dbase to match your configuration.
5-
*
6-
* */
7-
8-
$user = "system";
9-
$password = "system";
10-
$dbase = "oracle";
3+
include "details.inc";
114

125
/*
136
* You should have privileges to create tables in this schema

ext/oci8/tests/details.inc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
/*
4+
* Please, change user, password and dbase to match your configuration.
5+
*
6+
* */
7+
8+
$user = "system";
9+
$password = "system";
10+
$dbase = "oracle";
11+
12+
/* Set this variable to TRUE if Oracle is installed @ localhost */
13+
14+
$oracle_on_localhost = FALSE;
15+
16+
?>

ext/oci8/tests/lob_029.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
--TEST--
22
reading/writing BFILE LOBs
33
--SKIPIF--
4-
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
4+
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension");
5+
include "details.inc";
6+
if (empty($oracle_on_localhost)) die("skip this test won't work with remote Oracle");
7+
?>
58
--FILE--
69
<?php
710

0 commit comments

Comments
 (0)