示例#1
0
 /**
  * Method to test copy().
  *
  * @return void
  *
  * @covers Windwalker\Filesystem\Filesystem::copy
  */
 public function testCopy()
 {
     Filesystem::delete(static::$dest);
     Filesystem::copy(static::$src, static::$dest);
     $this->assertTrue(is_dir(static::$dest));
     $this->assertFileExists(__DIR__ . '/dest/folder1/level2/file3');
 }
 /**
  * setUp
  *
  * @return  void
  */
 protected function setUp()
 {
     static::$dest = __DIR__ . '/dest';
     static::$src = __DIR__ . '/files';
     Filesystem::copy(static::$src, static::$dest);
 }