コード例 #1
0
ファイル: TestMapTest.php プロジェクト: oktopost/skeleton
 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;
 }