Пример #1
0
 /**
  * @depends testReadReadCharPeekAndPeekChar
  * @depends testResetAndMark
  */
 public function testAtEndCloseAndIsClosed()
 {
     $stream = new ReadStream('A');
     $this->assertEquals($stream->atEnd(), false);
     $stream->read();
     $this->assertEquals($stream->atEnd(), true);
     $stream->reset();
     $this->assertEquals($stream->isClosed(), false);
     $stream->close();
     $this->assertEquals($stream->isClosed(), true);
 }