diff --git a/www/admin/class_test.class-calls.php b/www/admin/class_test.class-calls.php
new file mode 100644
index 00000000..dab66808
--- /dev/null
+++ b/www/admin/class_test.class-calls.php
@@ -0,0 +1,42 @@
+ BASE . LOG,
+ 'log_file_id' => $LOG_FILE_ID,
+ 'log_per_date' => true,
+]);
+// db connection and attach logger
+$db = new CoreLibs\DB\IO(DB_CONFIG, $log);
+
+// define a list of from to color sets for conversion test
+
+$PAGE_NAME = 'TEST CLASS: CLASS CALLS';
+print "";
+print "
" . $PAGE_NAME . "";
+print "";
+print '';
+print '' . $PAGE_NAME . '
';
+
+$test = new \TestCalls\Test($db, $log);
+
+$test->testDbCall();
+
+print "";
+
+// __END__
diff --git a/www/admin/class_test.db.php b/www/admin/class_test.db.php
index bff2aeeb..507956fd 100644
--- a/www/admin/class_test.db.php
+++ b/www/admin/class_test.db.php
@@ -73,6 +73,36 @@ $db->dbSetEncoding('SJIS');
print "ENCODING TEST: " . $db->dbVersionInfo('client_encoding') . "/" . $db->dbGetEncoding() . "
";
$db->dbResetEncoding();
+// empty calls, none of the below should fail
+//
+$db->dbGetInsertPKName();
+//
+$db->dbGetInsertPK();
+//
+$db->dbGetReturningExt();
+$db->dbGetReturningExt('foo');
+$db->dbGetReturningExt('foo', 0);
+$db->dbGetReturningExt(pos:0);
+//
+$db->dbGetReturningArray();
+//
+$db->dbGetNumRows();
+//
+$db->dbGetNumFields();
+//
+$db->dbGetFieldNames();
+//
+$db->dbGetFieldTypes();
+//
+$db->dbGetFieldNameTypes();
+//
+$db->dbGetFieldName(0);
+//
+$db->dbGetFieldType(0);
+$db->dbGetFieldType('foo');
+//
+$db->dbGetPrepareCursorValue('foo', 'bar');
+
// TEST CACHE READS
$res = $db->dbReturn("SELECT * FROM max_test");
diff --git a/www/admin/class_test.debug.php b/www/admin/class_test.debug.php
index 09325d39..a19d8b9c 100644
--- a/www/admin/class_test.debug.php
+++ b/www/admin/class_test.debug.php
@@ -169,6 +169,7 @@ class TestL
public function test(?string $ts = null): bool
{
print "* GETCALLERCLASS(INSIDE CLASS): " . \CoreLibs\Debug\Support::getCallerClass() . "
";
+ print "* GETCALLERTOPCLASS(INSIDE CLASS): " . \CoreLibs\Debug\Support::getCallerTopLevelClass() . "
";
$this->log->debug('TESTL', 'Logging in class testL' . ($ts !== null ? ': ' . $ts : ''));
$this->log->debug('TESTL', 'Some other message');
return true;
@@ -191,6 +192,7 @@ class TestR extends TestL
public function subTest(): bool
{
print "** GETCALLERCLASS(INSIDE EXTND CLASS): " . \CoreLibs\Debug\Support::getCallerClass() . "
";
+ print "** GETCALLERTOPCLASS(INSIDE EXTND CLASS): " . \CoreLibs\Debug\Support::getCallerTopLevelClass() . "
";
$this->log->debug('TESTR', 'Logging in class testR (extends testL)');
$this->test('TESTR INSIDE');
$this->log->debug('TESTR', 'Array: '
diff --git a/www/admin/class_test.json.php b/www/admin/class_test.json.php
index 9816abde..e86f5ccc 100644
--- a/www/admin/class_test.json.php
+++ b/www/admin/class_test.json.php
@@ -63,6 +63,11 @@ print "J/S::E-JSON ERROR: " . $json_class::jsonGetLastError() . ": " . $json_cla
// print "S::JSON: $json: " . DgS::printAr($output) . "
";
// print "S::JSON ERROR: " . Jason::jsonGetLastError() . ": " . Jason::jsonGetLastError(true) . "
";
+// convert an array to json
+$array = ['foo' => 'bar'];
+$output = Json::jsonConvertArrayTo($array);
+print "S::JSON: " . DgS::printAr($array) . " => " . $output . "
";
+
print "";
// __END__
diff --git a/www/admin/class_test.php b/www/admin/class_test.php
index c0f15b72..f7645079 100644
--- a/www/admin/class_test.php
+++ b/www/admin/class_test.php
@@ -114,6 +114,7 @@ $test_files = [
'class_test.autoloader.php' => 'Class Test: AUTOLOADER',
'class_test.config.link.php' => 'Class Test: CONFIG LINK',
'class_test.config.direct.php' => 'Class Test: CONFIG DIRECT',
+ 'class_test.class-calls.php' => 'Class Test: CLASS CALLS',
'subfolder/class_test.config.direct.php' => 'Class Test: CONFIG DIRECT SUB',
];
diff --git a/www/admin/class_test.readenvfile.php b/www/admin/class_test.readenvfile.php
index 28d706c7..2e569e32 100644
--- a/www/admin/class_test.readenvfile.php
+++ b/www/admin/class_test.readenvfile.php
@@ -40,5 +40,6 @@ print "test.env: STATUS: " . $status . "
";
print "AFTER reading test.env file: " . \CoreLibs\Debug\Support::printAr($_ENV) . "
";
print "