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()); }
public function providerForHttpStatuses() { $aStatuses = HttpResponseType::getList(); $return = array(); foreach ($aStatuses as $iStatus => $sStatus) { $return[] = [$iStatus]; } return $return; }
public function providerForTestBasicGetRedirectCode() { $aStatuses = HttpResponseType::getList(); $return = array(); foreach ($aStatuses as $iStatus => $sStatus) { $return[] = [$iStatus]; } return $return; }