removeAt() 공개 메소드

This overrides the parent implementation by performing additional cleanup work when removing a TCookie object.
public removeAt ( $index ) : mixed
리턴 mixed the removed item.
예제 #1
0
 public function testRemoveAt()
 {
     $coll = new THttpCookieCollection();
     try {
         $coll->removeAt(0);
         self::fail('Invalid Value exception not raised');
     } catch (TInvalidDataValueException $e) {
     }
     $coll->insertAt(0, new THttpCookie('name', 'value'));
     self::assertEquals('value', $coll->removeAt(0)->getValue());
 }