message: Update hook_flags_2.phpt
diff: @@ -6,29 +6,26 @@ swoole_coroutine_scheduler: hook_flags
  <?php
  require __DIR__ . '/../include/bootstrap.php';
  +$hash = md5_file(TEST_IMAGE);
  +
  // 1
  $sch = new Swoole\Coroutine\Scheduler();
  $sch->set(['hook_flags' => SWOOLE_HOOK_ALL,]);
  -$sch->add(function ($t, $n) {
  - usleep($t);
  - echo "$n\n";
  -}, 100000, 'A');
  +$sch->add(function () use ($hash) {
  + Assert::eq($hash, md5(file_get_contents(TEST_IMAGE)));
  +});
  $sch->start();
  -usleep(10000);
  -echo "B\n";
  +Assert::eq($hash, md5(file_get_contents(TEST_IMAGE)));
  // 2
  $sch = new Swoole\Coroutine\Scheduler();
  $sch->set(['hook_flags' => SWOOLE_HOOK_ALL,]);
  -$sch->add(function ($t, $n) {
  - usleep($t);
  - echo "$n\n";
  -}, 100000, 'C');
  +$sch->add(function () use ($hash) {
  + Assert::eq($hash, md5(file_get_contents(TEST_IMAGE)));
  +});
  $sch->start();
  ?>
  ---EXPECTF--
  -int(%d)
  -B
  -A
  +--EXPECT--
  +
  