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()); }
/** @test */ public function preFilledMapHasEntries() { $map = new Map(array(1 => 'foo', 2 => 'bar')); $this->assertEquals(2, $map->count()); }