dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Create a custom log formatter that allows log entries to contain wikitext"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
exception
/
ThrottledErrorTest.php
diff --git
a/tests/phpunit/includes/exception/ThrottledErrorTest.php
b/tests/phpunit/includes/exception/ThrottledErrorTest.php
index
15f0896
..
5214b6d
100644
(file)
--- a/
tests/phpunit/includes/exception/ThrottledErrorTest.php
+++ b/
tests/phpunit/includes/exception/ThrottledErrorTest.php
@@
-11,8
+11,10
@@
class ThrottledErrorTest extends MediaWikiTestCase {
try {
throw new ThrottledError();
} catch ( ThrottledError $e ) {
+ ob_start();
$e->report();
- $this->assertTrue( true );
+ $text = ob_get_clean();
+ $this->assertContains( $e->getText(), $text );
}
}