Deprecate assertException in MediaWikiTestCase as it adds no value
authorjeroendedauw <jeroendedauw@gmail.com>
Sat, 18 May 2013 17:38:24 +0000 (19:38 +0200)
committerJeroen De Dauw <jeroendedauw@gmail.com>
Fri, 20 Sep 2013 20:48:51 +0000 (20:48 +0000)
setExpectedException, provided by PHPUnit itself, can and should be used instead

Change-Id: I06833eeeb492d2cc4e66b14aaebd5b2061a29e3a

tests/phpunit/MediaWikiTestCase.php

index 25ba29e..349c510 100644 (file)
@@ -918,6 +918,7 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase {
         * the provided code.
         *
         * @since 1.21
+        * @deprecated since 1.22 Use setExpectedException
         *
         * @param callable $code
         * @param string $expected