OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
new_ui
/
assets
/
payment
/
vendor
/
rmccue
/
requests
/
tests
/
Exception
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
ArgumentCountTest.php
604 bytes
05/19/2025 10:07:13 AM
rw-r--r--
📁
Http
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
HttpTest.php
2.41 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
InvalidArgumentTest.php
643 bytes
05/19/2025 10:07:13 AM
rw-r--r--
📁
Transport
-
05/19/2025 10:07:13 AM
rwxr-xr-x
Editing: InvalidArgumentTest.php
Close
<?php namespace WpOrg\Requests\Tests\Exception; use WpOrg\Requests\Exception\InvalidArgument; use WpOrg\Requests\Tests\TestCase; /** * @covers \WpOrg\Requests\Exception\InvalidArgument */ final class InvalidArgumentTest extends TestCase { /** * Test that the text of the exception is as expected. * * @return void */ public function testCreate() { $this->expectException(InvalidArgument::class); $this->expectExceptionMessage('InvalidArgumentTest::testCreate(): Argument #2 ($dummy) must be of type int|null, string given'); throw InvalidArgument::create(2, '$dummy', 'int|null', 'string'); } }