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