Пример #1
0
 /**
  * @dataProvider provideRunHooks
  * @covers MWException::runHooks
  */
 public function testRunHooks($wgExceptionHooks, $name, $args, $expectedReturn)
 {
     $this->setMwGlobals(array('wgExceptionHooks' => $wgExceptionHooks));
     $e = new MWException();
     $this->assertEquals($expectedReturn, $e->runHooks($name, $args));
 }