Esempio n. 1
0
 public function testPush()
 {
     $case = new ArrayCase();
     $case->push('foo');
     $case->push('bar');
     $this->assertEquals(array('foo', 'bar'), $case->all());
 }
Esempio n. 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);
 }