close() public method

Close both the remote stream and buffer stream
public close ( )
 public function testClosesBothStreams()
 {
     $s = fopen('php://temp', 'r');
     $a = EntityBody::factory($s);
     $d = new CachingEntityBody($a);
     $d->close();
     $this->assertFalse(is_resource($s));
 }