예제 #1
0
 public function test_has_ObjectInMainMap_ReturnTrue()
 {
     $map = $this->mockIMap();
     $testMap = new TestMap($map);
     $map->method('has')->with('a')->willReturn(true);
     $testMap->override('b', new \stdClass());
     $this->assertTrue($testMap->has('a'));
 }
예제 #2
0
 /**
  * @param string $key
  * @param mixed $value
  * @return static
  */
 public function override($key, $value)
 {
     $this->testMap->override($key, $value);
     return $this;
 }