OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
side_navbar_testing
/
assets
/
payment
/
vendor
/
rmccue
/
requests
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/06/2025 05:37:34 AM
rwxr-xr-x
📁
Auth
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
AutoloadTest.php
1.78 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
Cookie
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
CookieTest.php
24.35 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
EnvironmentTest.php
929 bytes
05/19/2025 10:07:13 AM
rw-r--r--
📁
Exception
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📁
Fixtures
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
HooksTest.php
12.29 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
IdnaEncoderTest.php
9.93 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
Ipv6Test.php
3.47 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
IriTest.php
15.86 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
PortTest.php
2.37 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
Proxy
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📁
Requests
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
RequestsTest.php
12.88 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
Response
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
ResponseTest.php
1.72 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
SessionTest.php
12.91 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
SslTest.php
16.13 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
TestCase.php
1.48 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
Transport
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📁
Utility
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
bootstrap.php
2.84 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
utils
-
03/06/2025 05:37:48 AM
rwxr-xr-x
Editing: AutoloadTest.php
Close
<?php namespace WpOrg\Requests\Tests; use Requests_Exception_Transport_cURL; use Requests_Utility_FilteredIterator; use WpOrg\Requests\Tests\TestCase; use WpOrg\Requests\Utility\FilteredIterator; final class AutoloadTest extends TestCase { const MSG = 'The PSR-0 `Requests_...` class names in the Requests library are deprecated.'; /** * Verify that a deprecation notice is thrown when the "old" Requests class is loaded. */ public function testDeprecationNoticeThrownForOldRequestsClass() { $this->expectDeprecation(); $this->expectDeprecationMessage(self::MSG); require_once dirname(__DIR__) . '/library/Requests.php'; } /** * Verify that a deprecation notice is thrown when one of the other "old" Requests classes is autoloaded. */ public function testDeprecationNoticeThrownForOtherOldRequestsClass() { $this->expectDeprecation(); $this->expectDeprecationMessage(self::MSG); echo Requests_Exception_Transport_cURL::EASY; } /** * Verify that the deprecation layer works without a fatal error for extending a final class. * * Note: this test also verifies that the PSR-0 names are handled case-insensitively by the autoloader. * * @preserveGlobalState disabled * @runInSeparateProcess */ public function testAutoloadOfOldRequestsClassDoesNotThrowAFatalForFinalClass() { define('REQUESTS_SILENCE_PSR0_DEPRECATIONS', true); $this->assertInstanceOf(FilteredIterator::class, new Requests_utility_filteredIterator([], function() {})); } /** * Verify that the constant declaration in the previous test doesn't affect other tests. * * @coversNothing */ public function testConstantDeclarationDoesntInfluenceFurtherTests() { $this->assertFalse(defined('REQUESTS_SILENCE_PSR0_DEPRECATIONS')); } }