Explorar o código

Use Worker::$command instead of $argv

Refer https://github.com/walkor/workerman/pull/907
walkor %!s(int64=2) %!d(string=hai) anos
pai
achega
ca4bcaf0bd
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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
     );