예제 #1
0
 public function testCanClearAllDataOrSpecificKeys()
 {
     $this->coll->merge(array('test' => 'value1', 'test2' => 'value2'));
     // Clear a specific parameter by name
     $this->coll->remove('test');
     $this->assertEquals($this->coll->getAll(), array('test2' => 'value2'));
     // Clear all parameters
     $this->coll->clear();
     $this->assertEquals($this->coll->getAll(), array());
 }