芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/vendor/sabre/http/tests/HTTP/ResponseDecoratorTest.php
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); } }