mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 22:02:13 +09:00
Update unit tests for latest codeception
This commit is contained in:
parent
0db02281c9
commit
f46b41f437
12 changed files with 331 additions and 295 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue