public function testBodyMutatorReturnsCloneWithChanges() { $stream = new MemoryStream('wb+'); $message = $this->message->withBody($stream); $this->assertNotSame($this->message, $message); $this->assertSame($stream, $message->getBody()); }