Beispiel #1
0
 /**
  *
  */
 public function testSetAndContains()
 {
     $hashable = m::mock(Hashable::class)->shouldReceive('hashCode')->twice()->andReturn(1)->mock();
     $map = new HashMap();
     $map[$hashable] = 'foo';
     $this->assertFalse($map->isEmpty());
     $this->assertTrue($map->contains($hashable));
 }