public function testGetSizeAttached() { $this->stream = $this->resourceFactory(); $body = new Body($this->stream); $this->assertEquals(mb_strlen($this->text), $body->getSize()); }