close() 공개 메소드

Closes the stream
public close ( ) : boolean
리턴 boolean True on closed connection
예제 #1
0
 public function testClose()
 {
     $stream = new Stream($this->_testConfig);
     $result = $stream->open();
     $this->assertTrue($result);
     $result = $stream->close();
     $this->assertTrue($result);
     $result = $stream->resource();
     $this->assertFalse(is_resource($result));
 }
예제 #2
0
 public function testClose()
 {
     $stream = new Stream($this->_testConfig);
     $result = $stream->open();
     $this->assertNotEmpty($result);
     $result = $stream->close();
     $this->assertTrue($result);
     $result = $stream->resource();
     $this->assertNotInternalType('resource', $result);
 }