Throw user warnings when a file operation fails dangerously

This commit is contained in:
Kijin Sung 2016-07-03 17:30:46 +09:00
parent 2dddc982a7
commit ce594eece7
2 changed files with 81 additions and 10 deletions

View file

@ -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()