insertAt() 공개 메소드

This overrides the parent implementation by performing additional operations for each newly added THttpCookie object.
public insertAt ( $index, $item )
예제 #1
0
 public function testFindCookieByName()
 {
     $coll = new THttpCookieCollection();
     $coll->insertAt(0, new THttpCookie('name', 'value'));
     self::assertEquals('value', $coll->findCookieByName('name')->getValue());
     self::assertNull($coll->findCookieByName('invalid'));
 }