From 63a4ca2587daaf98f1ad2f12efb0f023958a28d7 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 25 Jan 2009 12:37:45 +0000 Subject: [PATCH] preliminary hash ban testing --- contrib/image_hash_ban/test.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 contrib/image_hash_ban/test.php diff --git a/contrib/image_hash_ban/test.php b/contrib/image_hash_ban/test.php new file mode 100644 index 00000000..a1b1e889 --- /dev/null +++ b/contrib/image_hash_ban/test.php @@ -0,0 +1,19 @@ +receive_event($due); + $this->assertTrue(false); // shouldn't work + } + catch(DataUploadException $ex) { + $this->assertTrue(true); // should fail + } + catch(Exception $ex) { + $this->assertTrue(false); // but not with any other error + } + } +} +?>