public function clearing() { $v = new Vector(array(new String('Goodbye cruel world'))); $this->assertFalse($v->isEmpty()); $v->clear(); $this->assertTrue($v->isEmpty()); }
public function clearing() { $v = new Vector([new Name('Goodbye cruel world')]); $this->assertFalse($v->isEmpty()); $v->clear(); $this->assertTrue($v->isEmpty()); }