Пример #1
0
 /**
  * @test
  */
 public function getSizeReturnsStreamSize()
 {
     $resource = fopen(__FILE__, 'r');
     $expected = fstat($resource);
     $stream = new Stream($resource);
     $this->assertEquals($expected['size'], $stream->getSize());
 }