public function HttpStreamWrapperTest::assertStat in Remote Stream Wrapper 8
1 call to HttpStreamWrapperTest::assertStat()
- HttpStreamWrapperTest::testStat in tests/
src/ Kernel/ HttpStreamWrapperTest.php - @covers ::stream_stat @dataProvider dataStat
File
- tests/
src/ Kernel/ HttpStreamWrapperTest.php, line 48
Class
- HttpStreamWrapperTest
- @coversDefaultClass \Drupal\remote_stream_wrapper\StreamWrapper\HttpStreamWrapper @group remote_stream_wrapper
Namespace
Drupal\Tests\remote_stream_wrapper\KernelCode
public function assertStat($expected_stat, $actual_stat) {
if ($actual_stat && $expected_stat) {
$actual_stat = array_intersect_key($actual_stat, $expected_stat);
}
$this
->assertSame($expected_stat, $actual_stat);
}