Lines Matching refs:body
16 $body = 'foo';
18 fwrite($h, $body);
24 $this->assertEquals($body, $message->getBodyAsString());
26 $this->assertEquals($body, stream_get_contents($message->getBodyAsStream()));
28 $this->assertEquals($body, stream_get_contents($message->getBody()));
34 $body = 'foo';
37 $message->setBody($body);
39 $this->assertEquals($body, $message->getBodyAsString());
40 $this->assertEquals($body, stream_get_contents($message->getBodyAsStream()));
41 $this->assertEquals($body, $message->getBody());
49 $body = $message->getBodyAsStream();
51 $this->assertEquals('', stream_get_contents($body));
58 $body = $message->getBodyAsString();
60 $this->assertEquals('', $body);
148 $body = $message->getBody();
149 rewind($body);
151 $this->assertEquals('bar', stream_get_contents($body));