예제 #1
0
 public function testBasicGetList()
 {
     $Mirror = new \ReflectionClass(HttpResponseType::class);
     $MirrorProperty = $Mirror->getProperty('aStatusList');
     $MirrorProperty->setAccessible(\ReflectionProperty::IS_PUBLIC);
     $aStatuses = $MirrorProperty->getValue();
     $this->assertEquals($aStatuses, HttpResponseType::getList());
 }
예제 #2
0
 public function providerForHttpStatuses()
 {
     $aStatuses = HttpResponseType::getList();
     $return = array();
     foreach ($aStatuses as $iStatus => $sStatus) {
         $return[] = [$iStatus];
     }
     return $return;
 }
예제 #3
0
 public function providerForTestBasicGetRedirectCode()
 {
     $aStatuses = HttpResponseType::getList();
     $return = array();
     foreach ($aStatuses as $iStatus => $sStatus) {
         $return[] = [$iStatus];
     }
     return $return;
 }