Esempio n. 1
0
 public function testCountIsEmpty()
 {
     $this->assertEquals(2, $this->properties->count());
     $this->assertFalse($this->properties->isEmpty());
     $this->properties->clear();
     $this->assertEquals(0, $this->properties->count());
     $this->assertTrue($this->properties->isEmpty());
 }
Esempio n. 2
0
 /** @test */
 public function preFilledMapHasEntries()
 {
     $map = new Map(array(1 => 'foo', 2 => 'bar'));
     $this->assertEquals(2, $map->count());
 }