Esempio n. 1
0
 /**
  * This method tests that all items are cleared from a list.
  */
 public function testClear()
 {
     //$this->markTestIncomplete();
     $p0 = IHashMap\Type::make2(ITuple\Type::box2(IString\Type::box('key0'), IInt32\Type::zero()), ITuple\Type::box2(IString\Type::box('key1'), IInt32\Type::one()), ITuple\Type::box2(IString\Type::box('key2'), IInt32\Type::box(2)));
     $p1 = $p0->unbox();
     $this->assertCount(3, $p1);
     $p0 = $p0->clear();
     $p2 = $p0->unbox();
     $this->assertCount(0, $p2);
 }