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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user