/**
  * @dataProvider languageCodeProvider
  */
 public function testReadByLanguageCodeWithCache($languageCode)
 {
     $cache = $this->getMockBuilder('\\Onoi\\Cache\\Cache')->disableOriginalConstructor()->getMockForAbstractClass();
     $cache->expects($this->atLeastOnce())->method('contains')->will($this->returnValue(true));
     $cache->expects($this->atLeastOnce())->method('fetch')->will($this->returnValue(array()));
     $instance = new LanguageJsonFileContentsReader($cache);
     $instance->clear();
     $this->assertInternalType('array', $instance->readByLanguageCode($languageCode));
 }
 protected function tearDown()
 {
     $this->testEnvironment->tearDown();
     LanguageJsonFileContentsReader::clear();
     parent::tearDown();
 }