Przeglądaj źródła

Use Worker::$command instead of $argv

Refer https://github.com/walkor/workerman/pull/907
walkor 2 lat temu
rodzic
commit
ca4bcaf0bd
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      tests/Feature/UdpConnectionTest.php

+ 1 - 2
tests/Feature/UdpConnectionTest.php

@@ -20,8 +20,7 @@ beforeAll(function () use ($serverAddress) {
             }
             \$connection->send('received: '.\$data);
         };
-        global \$argv;
-        \$argv = ['', 'start'];
+        Worker::$command = 'start';
         Worker::runAll();
     PHP
     );