aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/csv.php8
-rw-r--r--tests/index.php6
-rw-r--r--tests/read.php6
3 files changed, 10 insertions, 10 deletions
diff --git a/tests/csv.php b/tests/csv.php
index 57bb890..e50249b 100644
--- a/tests/csv.php
+++ b/tests/csv.php
@@ -60,9 +60,9 @@ $isis = new CinisisDb();
// Test connection.
if ($isis->db) {
- // Get format and number of rows.
- $rows = $isis->db->rows();
- $format = $isis->db->format;
+ // Get format and number of entries.
+ $entries = $isis->db->entries();
+ $format = $isis->db->format;
// Prepare output.
header("Content-type: application/text/x-csv");
@@ -84,7 +84,7 @@ if ($isis->db) {
echo "\n";
// Format output.
- for ($n = 1; $n <= $rows; $n++) {
+ for ($n = 1; $n <= $entries; $n++) {
$result = $isis->db->read($n);
if ($result) {
diff --git a/tests/index.php b/tests/index.php
index 5a14f22..ebd465f 100644
--- a/tests/index.php
+++ b/tests/index.php
@@ -21,13 +21,13 @@ $isis = new CinisisDb();
// Test connection.
if ($isis->db) {
- $result = $isis->db->read(1);
- $rows = $isis->db->rows();
+ $result = $isis->db->read(1);
+ $entries = $isis->db->entries();
// Format output.
echo '<pre>';
echo "Connection test:\n";
- echo "Rows: $rows\n";
+ echo "Rows: $entries\n";
print_r($result);
echo '</pre>';
}
diff --git a/tests/read.php b/tests/read.php
index 2cb49ac..1235c25 100644
--- a/tests/read.php
+++ b/tests/read.php
@@ -35,14 +35,14 @@ foreach ($configs as $config) {
// Test connection.
if ($isis->db) {
- $result = $isis->db->read(1);
- $rows = $isis->db->rows();
+ $result = $isis->db->read(1);
+ $entries = $isis->db->entries();
// Format output.
echo '<td>';
echo '<pre>';
echo 'Implementation: '. $config['implementation'] ."\n";
- echo "Rows: $rows\n";
+ echo "Rows: $entries\n";
print_r($result);
echo '</pre>';
echo '</td>';