getCount() public method

public getCount ( ) : integer
return integer the number of items in the map
Beispiel #1
0
 public function testConstruct()
 {
     $a = array(1, 2, 'key3' => 3);
     $map = new TMap($a);
     $this->assertEquals(3, $map->getCount());
     $map2 = new TMap($this->map);
     $this->assertEquals(2, $map2->getCount());
 }