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