/**
  * @dataProvider provideExcludedPages
  */
 public function testExcludedPages($type, $conf, $title, $include)
 {
     $this->setMwGlobals($type, array($conf));
     $text = '';
     GoogleAnalyticsHooks::onSkinAfterBottomScripts($this->mockSkin(false, $title), $text);
     if ($include) {
         $this->assertContains('No web analytics configured', $text);
     } else {
         $this->assertContains('Web analytics code inclusion is disabled for this page', $text);
     }
 }