| 11 | |
| 12 | /** |
| 13 | * @ticket 39783 |
| 14 | */ |
| 15 | public function test_http_api_curl_stream_parameter_is_a_reference() { |
| 16 | add_action( 'http_api_curl', array( $this, '_action_test_http_api_curl_stream_parameter_is_a_reference' ), 10, 3 ); |
| 17 | wp_remote_request( $this->fileStreamUrl, array( 'stream' => true, 'timeout' => 30 ) ); |
| 18 | remove_action( 'http_api_curl', array( $this, '_action_test_http_api_curl_stream_parameter_is_a_reference' ), 10 ); |
| 19 | } |
| 20 | |
| 21 | public function _action_test_http_api_curl_stream_parameter_is_a_reference( &$stream, $r, $url ) { |
| 22 | // $stream not being a reference will cause a PHP warning. |
| 23 | // For counting tests purposes, let's do a fake assert. |
| 24 | $this->assertTrue( true ); |
| 25 | } |