tests/integration/Modify/CopyTest.php 1 location
|
@@ 47-55 (lines=9) @@
|
44 |
|
static::assertEquals($gzipped->getCompression(), $gzipCopy->getCompression()); |
45 |
|
} |
46 |
|
|
47 |
|
public function testCopyAppendsCopyWhenNoPathIsSpecified() |
48 |
|
{ |
49 |
|
$localFile = new LocalFile(static::$dir . 'copy_default_append.text'); |
50 |
|
$localFile->put('some random text'); |
51 |
|
|
52 |
|
$newFile = $localFile->copy(); |
53 |
|
|
54 |
|
static::assertEquals($localFile->getPath() . '-copy', $newFile); |
55 |
|
} |
56 |
|
|
57 |
|
public function testWhenCopyFailsItRaisesAnException() |
58 |
|
{ |
tests/integration/Node/LocalFileTest.php 1 location
|
@@ 19-27 (lines=9) @@
|
16 |
|
static::assertInstanceOf(FileNodeInterface::class, $file); |
17 |
|
} |
18 |
|
|
19 |
|
public function testGetFilePathReturnsFullyQualifiedPath() |
20 |
|
{ |
21 |
|
$file = new LocalFile(static::$dir . 'file_path.test'); |
22 |
|
$file->put('random'); |
23 |
|
|
24 |
|
$expected = static::$dir . 'file_path.test'; |
25 |
|
|
26 |
|
static::assertEquals($expected, $file->getPath()); |
27 |
|
} |
28 |
|
|
29 |
|
public function testGetFilenameJustReturnsTheFilename() |
30 |
|
{ |