예제 #1
0
 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');
 }
예제 #2
0
 /**
  * @param string $key
  * @param bool $useGlobal
  * @return mixed
  */
 public function get($key, $useGlobal = true)
 {
     return $this->testMap->get($key);
 }