public function test_get_HasOverrideObject_MainMapNotCalled() { $map = $this->mockIMap(); $testMap = new TestMap($map); $testMap->override('a', \stdClass::class); $map->expects($this->never())->method('get')->with('a'); $testMap->get('a'); }
/** * @param string $key * @param bool $useGlobal * @return mixed */ public function get($key, $useGlobal = true) { return $this->testMap->get($key); }