public function clearing() { $v = new Vector(array(new String('Goodbye cruel world'))); $this->assertFalse($v->isEmpty()); $v->clear(); $this->assertTrue($v->isEmpty()); }
function testClear() { $this->object->append(1); $this->object->clear(); $this->assertCount(0, $this->object); }