diff --git a/www/admin/class_test.check.colors.php b/www/admin/class_test.check.colors.php
index 130f6af2..595a0dda 100644
--- a/www/admin/class_test.check.colors.php
+++ b/www/admin/class_test.check.colors.php
@@ -99,7 +99,7 @@ echo "
";
try {
$check = Colors::validateColor('#ab12cd', 99);
print "No Exception";
-} catch (\Exception $e) {
+} catch (\UnexpectedValueException $e) {
print "ERROR: " . $e->getCode() . ": " . $e->getMessage() . "
";
}
diff --git a/www/admin/class_test.convert.colors.php b/www/admin/class_test.convert.colors.php
index 223d152e..3c82d7be 100644
--- a/www/admin/class_test.convert.colors.php
+++ b/www/admin/class_test.convert.colors.php
@@ -39,8 +39,18 @@ print '' . $PAGE_NAME . '
';
// define a list of from to color sets for conversion test
// A(out of bounds)
-print "C::S/COLOR invalid rgb->hex (gray 125): -1, -1, -1: " . CoreLibs\Convert\Colors::rgb2hex(-1, -1, -1) . "
";
-print "\$C::S/COLOR invalid rgb->hex (gray 125): -1, -1, -1: " . $color_class::rgb2hex(-1, -1, -1) . "
";
+try {
+ print "C::S/COLOR invalid rgb->hex (gray 125): -1, -1, -1: "
+ . CoreLibs\Convert\Colors::rgb2hex(-1, -1, -1) . "
";
+} catch (\LengthException $e) {
+ print "*Exception: " . $e->getMessage() . "
" . $e . "
";
+}
+try {
+ print "\$C::S/COLOR invalid rgb->hex (gray 125): -1, -1, -1: "
+ . $color_class::rgb2hex(-1, -1, -1) . "
";
+} catch (\LengthException $e) {
+ print "**Exception: " . $e->getMessage() . "
" . print_r($e, true) . "
";
+}
// B(valid)
$rgb = [10, 20, 30];
$hex = '#0a141e';
diff --git a/www/admin/class_test.db.php b/www/admin/class_test.db.php
index 507956fd..c791d8a9 100644
--- a/www/admin/class_test.db.php
+++ b/www/admin/class_test.db.php
@@ -75,6 +75,14 @@ $db->dbResetEncoding();
// empty calls, none of the below should fail
//
+$db->dbGetCursor();
+//
+$db->dbGetCursorExt();
+//
+$db->dbGetCursorPos('SELECT foo', ['bar']);
+//
+$db->dbGetCursorNumRows('SELECT foo', ['bar']);
+//
$db->dbGetInsertPKName();
//
$db->dbGetInsertPK();
diff --git a/www/admin/class_test.image.php b/www/admin/class_test.image.php
index cabc8814..d2be61c6 100644
--- a/www/admin/class_test.image.php
+++ b/www/admin/class_test.image.php
@@ -109,6 +109,13 @@ foreach ($images as $image) {
echo "
";
}
+// errros
+try {
+ Image::createThumbnailSimple('', $thumb_width, 0, $cache_folder, $web_folder);
+} catch (\UnexpectedValueException $e) {
+ print "Message:
" . $e->getMessage() . "
" . $e . "
";
+}
+
print "