offsetGet() public method

This method is required by the interface \ArrayAccess.
public offsetGet ( $offset ) : mixed
return mixed the element at the offset, null if no element is found at the offset
Esempio n. 1
0
 public function testOffsetSet()
 {
     $request = new THttpRequest();
     $request->init(null);
     $request->offsetSet(0, 'test');
     // should not exists
     self::assertEquals('test', $request->offsetGet(0));
 }