function testCacheHit() { register_testing_ini( 'testing2.ini', 'test = 1' ); register_testing_ini( 'testing2.override.ini', 'test = 2' ); $ini = new ini(VAR_DIR . 'testing2.ini', true); //ini should be cached here... $ini_mock = new IniMockVersionOverride($this); touch($ini->get_cache_file(), time()+100); $ini_mock->expectNever('_parse'); $ini_mock->expectNever('_save_cache'); $ini_mock->ini(VAR_DIR . 'testing2.ini', true); $ini_mock->tally(); $ini->reset_cache(); }