public function testCanHaveMultipleHeadersWithSameName() { $this->message->setHeader('Line', 'foo1'); $this->message->setHeader('Line', 'foo2'); $headers = $this->message->getHeader('line'); $this->assertTrue(is_array($headers)); $this->assertEquals(2, count($headers)); $this->assertTrue($headers[0] instanceof Header); $this->assertTrue($headers[1] instanceof Header); $this->assertEquals('foo1', $headers[0]->getValueLine()); $this->assertEquals('foo2', $headers[1]->getValueLine()); }
public function testBodyBasics() { $body = 'a strange little fellow.'; $this->message->setBody($body); $this->assertEquals($body, $this->message->getBody()); }