/**
  * @since 2.2
  *
  * @param string $namespace
  *
  * @return boolean
  */
 public function contains($namespace)
 {
     if (!isset($this->importedVocabularies[$namespace]) || $this->importedVocabularies[$namespace] === '') {
         $this->importedVocabularies[$namespace] = $this->mediaWikiNsContentReader->read("smw_import_{$namespace}");
     }
     return $this->importedVocabularies[$namespace] !== '';
 }
 /**
  * @since 2.4
  *
  * @param string $userValue
  *
  * @return string|false
  */
 public function parse($userValue)
 {
     $contentList = $this->doParseContent($this->mediaWikiNsContentReader->read('smw allows pattern'));
     if (!isset($contentList[$userValue])) {
         return false;
     }
     return $contentList[$userValue];
 }
 public function testSkipMessageCache()
 {
     $instance = new MediaWikiNsContentReader();
     $instance->skipMessageCache();
     $this->assertInternalType('string', $instance->read(__METHOD__));
 }
 public function testUseDatabaseForFallback()
 {
     $instance = new MediaWikiNsContentReader();
     $instance->useDatabaseForFallback(true);
     $this->assertInternalType('string', $instance->read(__METHOD__));
 }