예제 #1
0
 public function testBasicGetLocation()
 {
     $sLocation = 'http://localhost';
     $iStatus = HttpResponseType::SEE_OTHER;
     $o = new ExceptionResponseRedirect($sLocation, $iStatus);
     $this->assertEquals($sLocation, $o->getLocation());
 }
예제 #2
0
 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());
 }
예제 #3
0
 public function __construct($iStatus, $sPath = 'http://localhost')
 {
     parent::__construct($sPath, $iStatus);
 }