public function testBasicGetLocation() { $sLocation = 'http://localhost'; $iStatus = HttpResponseType::SEE_OTHER; $o = new ExceptionResponseRedirect($sLocation, $iStatus); $this->assertEquals($sLocation, $o->getLocation()); }
public function testBasicInitialization() { $sLocation = 'http://localhost/'; $iStatus = HttpResponseType::CLIENT_ERROR; $o = new ExceptionResponseRedirect($sLocation, $iStatus); $this->assertEquals($sLocation, $o->getLocation()); $this->assertEquals($iStatus, $o->getRedirectCode()); }