mirror of
https://github.com/filegator/filegator.git
synced 2025-08-12 01:14:06 +02:00
Test enhancement (#18)
Wow! Thank you very much for fixing all this. Cheers!
This commit is contained in:
committed by
Milos Stojanovic
parent
c7d88635b4
commit
ea6933883f
@@ -20,7 +20,7 @@ class TmpfsTest extends TestCase
|
||||
{
|
||||
protected $service;
|
||||
|
||||
public function setUp(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->resetTempDir();
|
||||
rmdir(TEST_TMP_PATH);
|
||||
@@ -56,7 +56,7 @@ class TmpfsTest extends TestCase
|
||||
|
||||
$contents = $this->service->read('a.txt');
|
||||
|
||||
$this->assertEquals($contents, 'lorem');
|
||||
$this->assertEquals('lorem', $contents);
|
||||
}
|
||||
|
||||
public function testReadingTmpFileContentsUsingStream()
|
||||
@@ -67,7 +67,7 @@ class TmpfsTest extends TestCase
|
||||
$this->assertEquals($ret['filename'], 'a.txt');
|
||||
|
||||
$contents = stream_get_contents($ret['stream']);
|
||||
$this->assertEquals($contents, 'lorem');
|
||||
$this->assertEquals('lorem', $contents);
|
||||
}
|
||||
|
||||
public function testRemovingTmpFile()
|
||||
|
Reference in New Issue
Block a user