mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-25 21:32:51 +09:00
Throw user warnings when a file operation fails dangerously
This commit is contained in:
parent
2dddc982a7
commit
ce594eece7
2 changed files with 81 additions and 10 deletions
|
|
@ -253,7 +253,7 @@ class StorageTest extends \Codeception\TestCase\Test
|
|||
$this->assertTrue(Rhymix\Framework\Storage::copyDirectory($sourcedir, $targetdir));
|
||||
$this->assertTrue(file_exists($targetdir . '/bar'));
|
||||
$this->assertTrue(file_exists($targetdir . '/subdir/baz'));
|
||||
$this->assertFalse(Rhymix\Framework\Storage::copyDirectory($sourcedir, '/opt/nonexistent.foobar'));
|
||||
$this->assertFalse(@Rhymix\Framework\Storage::copyDirectory($sourcedir, '/opt/nonexistent.foobar'));
|
||||
}
|
||||
|
||||
public function testMoveDirectory()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue