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')); }
/** * @param string $key * @param mixed $value * @return static */ public function override($key, $value) { $this->testMap->override($key, $value); return $this; }