public function test_set_RedirectedToMain() { $map = $this->mockIMap(); $testMap = new TestMap($map); $map->expects($this->once())->method('set')->with('a', \stdClass::class, Type::Singleton); $testMap->set('a', \stdClass::class, Type::Singleton); }