aboutsummaryrefslogtreecommitdiff
path: root/tests/read.php
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-08-18 12:00:21 -0300
committerSilvio <silvio@devlet.com.br>2010-08-18 12:00:21 -0300
commit70539fe94d67cb4bdde7edce8a26873343d3c240 (patch)
tree2009cc33ccafa6a6f7c3d66523e6000cca10677d /tests/read.php
parentf7b8ba01cb6cbf78d5e687bd17dc5c571fe6c85e (diff)
downloadcinisis-70539fe94d67cb4bdde7edce8a26873343d3c240.tar.gz
cinisis-70539fe94d67cb4bdde7edce8a26873343d3c240.tar.bz2
Moving tests to apps folder
Diffstat (limited to 'tests/read.php')
-rw-r--r--tests/read.php53
1 files changed, 0 insertions, 53 deletions
diff --git a/tests/read.php b/tests/read.php
deleted file mode 100644
index 92dc1c3..0000000
--- a/tests/read.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Cinisis - Isis db reading tool.
- */
-?>
-
-<?php
-// Import requisites.
-require_once '../index.php';
-
-// Draw the document.
-$display = new CinisisDisplayHelper('Isis Reader');
-?>
-
-<table><tr>
-
-<?php
-
-$configs = array(
- 0 => array(
- 'implementation' => 'PhpIsis',
- 'database' => 'anu10',
- ),
- 1 => array(
- 'implementation' => 'BiblioIsis',
- 'database' => 'anu10',
- ),
-);
-
-foreach ($configs as $config) {
- // Get a db instance.
- $isis = new CinisisDb($config);
-
- // Test connection.
- if ($isis->db) {
- $result = $isis->db->read(1);
- $entries = $isis->db->entries();
-
- // Format output.
- echo '<td>';
- echo '<pre>';
- echo 'Implementation: '. $config['implementation'] ."\n";
- echo "Rows: $entries\n";
- print_r($result);
- echo '</pre>';
- echo '</td>';
- }
-}
-
-?>
-
-</tr></td></table>
-</body>