1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 19:54:12 +02:00

[ticket/16639] Add two more asserts

PHPBB3-16639
This commit is contained in:
rubencm
2021-03-24 20:47:34 +01:00
parent 65d8d4d6d3
commit 2d55977234
2 changed files with 5 additions and 3 deletions

View File

@@ -118,13 +118,14 @@ class phpbb_storage_adapter_local_test extends phpbb_local_test_case
public function test_read_stream()
{
// Given
touch($this->path . 'file.txt');
file_put_contents($this->path . 'file.txt', 'abc');
// When
$stream = $this->adapter->read_stream('file.txt');
// Then
$this->assertIsResource($stream);
$this->assertEquals('abc', stream_get_contents($stream));
// Clean test
fclose($stream);