File manager - Edit - /usr/local/cpanel/base/3rdparty/roundcube/vendor/sabre/http/tests/HTTP/ResponseDecoratorTest.php
Back
<?php declare(strict_types=1); namespace Sabre\HTTP; class ResponseDecoratorTest extends \PHPUnit\Framework\TestCase { protected $inner; protected $outer; public function setUp(): void { $this->inner = new Response(); $this->outer = new ResponseDecorator($this->inner); } public function testStatus() { $this->outer->setStatus(201); $this->assertEquals(201, $this->inner->getStatus()); $this->assertEquals(201, $this->outer->getStatus()); $this->assertEquals('Created', $this->inner->getStatusText()); $this->assertEquals('Created', $this->outer->getStatusText()); } public function testToString() { $this->inner->setStatus(201); $this->inner->setBody('foo'); $this->inner->setHeader('foo', 'bar'); $this->assertEquals((string) $this->inner, (string) $this->outer); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings