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

20 lines
442 B
PHP
Raw Normal View History

2009-01-25 12:37:45 +00:00
<?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
}
}
}
?>