This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/contrib/image_hash_ban/test.php
2009-01-25 09:19:15 -08:00

19 lines
442 B
PHP

<?php
class ImageHashBanUnitTest extends UnitTestCase {
public function _broken_testUploadFailsWhenBanned() {
$ihb = new ImageHashBan();
$due = new DataUploadEvent();
try {
$ihb->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
}
}
}
?>