OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
3-31-025chanakya
/
assets
/
payment
/
vendor
/
rmccue
/
requests
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/26/2025 04:24:36 AM
rwxr-xr-x
📁
Auth
-
03/26/2025 04:24:37 AM
rwxr-xr-x
📄
AutoloadTest.php
1.78 KB
03/26/2025 04:23:17 AM
rw-r--r--
📁
Cookie
-
03/26/2025 04:24:37 AM
rwxr-xr-x
📄
CookieTest.php
24.35 KB
03/26/2025 04:23:17 AM
rw-r--r--
📄
EnvironmentTest.php
929 bytes
03/26/2025 04:23:17 AM
rw-r--r--
📁
Exception
-
03/26/2025 04:28:23 AM
rwxr-xr-x
📁
Fixtures
-
03/26/2025 04:24:37 AM
rwxr-xr-x
📄
HooksTest.php
12.29 KB
03/26/2025 04:23:17 AM
rw-r--r--
📄
IdnaEncoderTest.php
9.93 KB
03/26/2025 04:23:17 AM
rw-r--r--
📄
Ipv6Test.php
3.47 KB
03/26/2025 04:23:17 AM
rw-r--r--
📄
IriTest.php
15.86 KB
03/26/2025 04:23:17 AM
rw-r--r--
📄
PortTest.php
2.37 KB
03/26/2025 04:23:17 AM
rw-r--r--
📁
Proxy
-
03/26/2025 04:24:37 AM
rwxr-xr-x
📁
Requests
-
03/26/2025 04:24:37 AM
rwxr-xr-x
📄
RequestsTest.php
12.88 KB
03/26/2025 04:23:17 AM
rw-r--r--
📁
Response
-
03/26/2025 04:24:37 AM
rwxr-xr-x
📄
ResponseTest.php
1.72 KB
03/26/2025 04:23:17 AM
rw-r--r--
📄
SessionTest.php
12.91 KB
03/26/2025 04:23:17 AM
rw-r--r--
📄
SslTest.php
16.13 KB
03/26/2025 04:23:17 AM
rw-r--r--
📄
TestCase.php
1.48 KB
03/26/2025 04:23:17 AM
rw-r--r--
📁
Transport
-
03/26/2025 04:24:37 AM
rwxr-xr-x
📁
Utility
-
03/26/2025 04:24:37 AM
rwxr-xr-x
📄
bootstrap.php
2.84 KB
03/26/2025 04:23:17 AM
rw-r--r--
📁
utils
-
03/26/2025 04:28:23 AM
rwxr-xr-x
Editing: TestCase.php
Close
<?php namespace WpOrg\Requests\Tests; use WpOrg\Requests\Requests; use Yoast\PHPUnitPolyfills\TestCases\TestCase as Polyfill_TestCase; abstract class TestCase extends Polyfill_TestCase { /** * Retrieve a URL to use for testing. * * @param string $suffix The query path to add to the base URL. * @param bool $ssl Whether to get the URL using the `http` or the `https` protocol. * Defaults to `false`, which will result in a URL using `http`. * * @return string */ public function httpbin($suffix = '', $ssl = false) { if ($ssl === false && REQUESTS_TEST_SERVER_HTTP_AVAILABLE === false) { $this->markTestSkipped(sprintf('Host %s not available. This needs investigation', REQUESTS_TEST_HOST_HTTP)); } if ($ssl === true && REQUESTS_TEST_SERVER_HTTPS_AVAILABLE === false) { $this->markTestSkipped(sprintf('Host %s not available. This needs investigation', REQUESTS_TEST_HOST_HTTPS)); } $host = $ssl ? 'https://' . \REQUESTS_TEST_HOST_HTTPS : 'http://' . \REQUESTS_TEST_HOST_HTTP; return rtrim($host, '/') . '/' . ltrim($suffix, '/'); } /** * Data provider for use in tests which need to be run against all default supported transports. * * @var array */ public function transportProvider() { $data = []; foreach (Requests::DEFAULT_TRANSPORTS as $transport) { $name = substr($transport, (strrpos($transport, '\\') + 1)); $data[$name] = [$transport]; } return $data; } }