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