Fatal errors break test execution, exceptions not
See also bug 42145
PS: how many months does it take to fix a bug that
prevents running unit tests? Answer below.
Change-Id: I0b351a05be9d0850b467046e807651be254dcae2
*/
public function addWikiText( $text, $linestart = true, $interface = true ) {
$title = $this->getTitle(); // Work arround E_STRICT
+ if ( !$title ) {
+ throw new MWException( 'Title is null' );
+ }
$this->addWikiTextTitle( $text, $title, $linestart, /*tidy*/false, $interface );
}