original_string: public static function serve($host = '127.0.0.1', $port = 8000): void
      {
          static::stopServing();
  
          $server = new DuskServer($host, $port);
          $server->stash(['class' => static::class]);
          $server->start();
  
          static::$server = $server;
      }
code: public static function serve($host = '127.0.0.1', $port = 8000): void
      {
          static::stopServing();
  
          $server = new DuskServer($host, $port);
          $server->stash(['class' => static::class]);
          $server->start();
  
          static::$server = $server;
      }
code_tokens: public static function serve ( $ host = '127.0.0.1' , $ port = 8000 ) : void { static :: stopServing ( ) ; $ server = new DuskServer ( $ host , $ port ) ; $ server -> stash ( [ 'class' => static :: class ] ) ; $ server -> start ( ) ; static :: $ server = $ server ; }
docstring: Begin serving on a given host and port.
  
  @param string $host
  @param int    $port
  
  @return void
  
  @throws \Orchestra\Testbench\Dusk\Exceptions\UnableToStartServer
docstring_tokens: Begin serving on a given host and port .