]> granicus.if.org Git - php/commitdiff
add tests
authorAntony Dovgal <tony2001@php.net>
Mon, 14 Jun 2004 20:10:27 +0000 (20:10 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 14 Jun 2004 20:10:27 +0000 (20:10 +0000)
ext/pdo_oci/tests/connect.phpt [new file with mode: 0644]
ext/pdo_oci/tests/settings.inc [new file with mode: 0644]

diff --git a/ext/pdo_oci/tests/connect.phpt b/ext/pdo_oci/tests/connect.phpt
new file mode 100644 (file)
index 0000000..9c79e86
--- /dev/null
@@ -0,0 +1,17 @@
+--TEST--
+PDO_OCI: connect
+--SKIPIF--
+<?php # vim:ft=php
+if (!extension_loaded("pdo_oci")) print "skip"; 
+?>
+--FILE--
+<?php /* $Id$ */
+
+require "settings.inc";
+
+$db = new PDO("oci:dbname=$dbase",$user,$password) or die("connect error");
+echo "done\n";
+       
+?>
+--EXPECT--
+done
diff --git a/ext/pdo_oci/tests/settings.inc b/ext/pdo_oci/tests/settings.inc
new file mode 100644 (file)
index 0000000..cbbaeda
--- /dev/null
@@ -0,0 +1,13 @@
+<?php /* $Id$ */
+
+/* 
+ * Please, change user, password and dbase to match your configuration.
+ * */
+
+$user       = "system";
+$password   = "manager";
+$dbase      = "dbase";
+
+$schema     = "system"; 
+
+?>