src/DisableAutoUpdateHandler.php
public function blockWpRequest($pre, $args, $url)
    {
        if (empty($url)) {
            return $pre;
        }

        /* Invalid host */
        if (!$host = $this->wpMockery->parseUrl($url, PHP_URL_HOST)) {
            return $pre;
        }

        $urlData = $this->wpMockery->parseUrl($url);

        /* block request */
        $path =  (false !== stripos($urlData['path'], 'update-check') || false !== stripos($urlData['path'], 'browse-happy'));

        if (false !== stripos($host, 'api.wordpress.org') && $path) {
            return true;
        }

        return $pre;
    }
public function blockWpRequest($pre, $args, $url)
    {
        if (empty($url)) {
            return $pre;
        }

        /* Invalid host */
        if (!$host = $this->wpMockery->parseUrl($url, PHP_URL_HOST)) {
            return $pre;
        }

        $urlData = $this->wpMockery->parseUrl($url);

        /* block request */
        $path =  (false !== stripos($urlData['path'], 'update-check') || false !== stripos($urlData['path'], 'browse-happy'));

        if (false !== stripos($host, 'api.wordpress.org') && $path) {
            return true;
        }

        return $pre;
    }
Check the outgoing request