From b91f359f1c5bb89d7c22e8cf234f71105140cdf9 Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 8 Apr 2010 14:57:27 -0300 Subject: CinisisDb::file() now accepts arrays --- tests/read.php | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 tests/read.php (limited to 'tests/read.php') diff --git a/tests/read.php b/tests/read.php new file mode 100644 index 0000000..bc3221e --- /dev/null +++ b/tests/read.php @@ -0,0 +1,49 @@ + + + + + + + + + + array( + 'implementation' => 'PhpIsis', + 'database' => 'tupi', + ), + 1 => array( + 'implementation' => 'Malete', + 'database' => 'tupi', + ), +); + +foreach ($configs as $config) { + // Get a db instance. + $isis = new CinisisDb($config); + + // Test connection. + if ($isis->db) { + $result = $isis->db->read(1); + $rows = $isis->db->rows(); + + // Format output. + echo '
';
+    echo "Connection test:\n";
+    echo "Rows: $rows\n";
+    print_r($result);
+    echo '
'; + } +} + +?> + -- cgit v1.2.3