public function testClose() { $this->stream = $this->resourceFactory(); $body = new Body($this->stream); $body->close(); $this->assertAttributeEquals(null, 'stream', $body); //$this->assertFalse($body->isAttached()); #1269 }