Ejemplo n.º 1
0
 public function testSet()
 {
     $case = new ArrayCase($this->arr);
     $case->set('key', 'value');
     $this->assertEquals('value', $case->get('key'));
     $case->set('key', 'other_val');
     $this->assertNotEquals('other_val', $case->get('key'));
     $case->set('key', 'other_val', true);
     $this->assertEquals('other_val', $case->get('key'));
 }
Ejemplo n.º 2
0
 /**
  * Get the Expires HTTP header (as \DateTime instance).
  * 
  * @return \DateTime The DateTime instance | null
  */
 public function getExpires()
 {
     return new DateTime($this->headers->get('Expires'));
 }