Esempio n. 1
0
 public function testCloseClearProperties()
 {
     $handle = fopen('php://temp', 'r+');
     $stream = new puzzle_stream_Stream($handle);
     $stream->close();
     $this->assertEmpty($stream->getMetadata());
     $this->assertFalse($stream->isSeekable());
     $this->assertFalse($stream->isReadable());
     $this->assertFalse($stream->isWritable());
     $this->assertNull($stream->getSize());
 }
Esempio n. 2
0
 public function tearDown()
 {
     $this->decorated->close();
     $this->body->close();
 }