Update unit tests for latest codeception

This commit is contained in:
Kijin Sung 2021-01-28 21:53:44 +09:00
parent 0db02281c9
commit f46b41f437
12 changed files with 331 additions and 295 deletions

View file

@ -171,14 +171,14 @@ class StorageTest extends \Codeception\TestCase\Test
$this->assertTrue(Rhymix\Framework\Storage::write($testfile . '1', ''));
$this->assertTrue(file_exists($testfile . '1'));
$this->assertEquals(0, filesize($testfile . '1'));
$this->assertEmpty(0, glob($testfile . '1.tmp.*'));
$this->assertEmpty(glob($testfile . '1.tmp.*'));
// Empty stream copy test
$stream = fopen('php://temp', 'r');
$this->assertTrue(Rhymix\Framework\Storage::write($testfile . '2', $stream));
$this->assertTrue(file_exists($testfile . '2'));
$this->assertEquals(0, filesize($testfile . '2'));
$this->assertEmpty(0, glob($testfile . '2.tmp.*'));
$this->assertEmpty(glob($testfile . '2.tmp.*'));
fclose($stream);
// Umask test