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')); }
/** * Get the Expires HTTP header (as \DateTime instance). * * @return \DateTime The DateTime instance | null */ public function getExpires() { return new DateTime($this->headers->get('Expires')); }