Exemple #1
0
 public function testRemove()
 {
     $case = new ArrayCase($this->arr);
     $this->assertTrue($case->has('baz'));
     $case->remove('baz');
     $this->assertFalse($case->has('baz'));
 }
Exemple #2
0
 /**
  * Is the response a redirect?
  * @return boolean Whether the response is a redirect
  */
 public function isRedirect()
 {
     return $this->headers->has('Location') && ($this->statusCode >= 300 && $this->statusCode < 400);
 }