public function HttpStreamWrapperTest::testStat in Remote Stream Wrapper 8
@covers ::stream_stat @dataProvider dataStat
File
- tests/
src/ Kernel/ HttpStreamWrapperTest.php, line 40  
Class
- HttpStreamWrapperTest
 - @coversDefaultClass \Drupal\remote_stream_wrapper\StreamWrapper\HttpStreamWrapper @group remote_stream_wrapper
 
Namespace
Drupal\Tests\remote_stream_wrapper\KernelCode
public function testStat($url, $expected_result, $head_response, $get_response) {
  $client = $this
    ->prepareClient($url, $head_response, $get_response);
  $this->wrapper
    ->setHttpClient($client);
  $stat = $this->wrapper
    ->url_stat($url, 0);
  $this
    ->assertStat($expected_result, $stat);
}