message: Update fgets test.
diff: @@ -6,28 +6,33 @@ swoole_coroutine_util: fgets
  <?php
  require __DIR__ . '/../include/bootstrap.php';
  -go(function () {
  - $file = __DIR__ . '/fgets.phpt';
  - $fp = fopen($file, 'r');
  - if (!$fp)
  - {
  - echo "ERROR\n";
  - return;
  +go(function () use ($fp) {
  + $file = __DIR__ . '/../swoole.c';
  +
  + $coroutine = '';
  + $fp = fopen($file, "r");
  + while (!feof($fp)) {
  + $coroutine .= co::fgets($fp);
  }
  - $data = '';
  - while (1)
  - {
  - $line = co::fgets($fp);
  - if (empty($line) and feof($fp))
  - {
  - break;
  + $standard = '';
  + $fp = fopen($file, "r");
  + while (!feof($fp)) {
  + $standard .= fgets($fp);
  }
  - $data .= $line;
  -// echo $line;
  +
  + Swoole\Runtime::enableCoroutine();
  + $runtime = '';
  + $fp = fopen($file, "r");
  + while (!feof($fp)) {
  + $runtime .= fgets($fp);
  }
  - assert(md5($data) == md5_file($file));
  -});
  + assert($standard === $coroutine);
  + assert($standard === $runtime);
  +
  + echo "DONE\n";
  +});
  ?>
  --EXPECT--
  +DONE
  