tests/integration/FileInfoTest.php 1 location
|
@@ 59-69 (lines=11) @@
|
| 56 |
|
); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
public function testGetFileCompressionForNonCompressedFile() |
| 60 |
|
{ |
| 61 |
|
$file = new LocalFile(static::$dir . 'uncompressed_file.test'); |
| 62 |
|
$file->put('some random text'); |
| 63 |
|
|
| 64 |
|
static::assertEquals( |
| 65 |
|
$file->getCompression(), |
| 66 |
|
$this->fileInfo->findCompression($file) |
| 67 |
|
); |
| 68 |
|
static::assertEquals(CompressionType::NONE, $file->getCompression()); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
public function testGetFileCompressionForGzipFile() |
| 72 |
|
{ |
tests/integration/Node/LocalFileTest.php 1 location
|
@@ 127-135 (lines=9) @@
|
| 124 |
|
static::assertSame($file, $newFile); |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
public function testSetCompressionModifiesTheEncoding() |
| 128 |
|
{ |
| 129 |
|
$file = new LocalFile(static::$dir . 'file_set_compression.test'); |
| 130 |
|
$file->put('uncompressed contents'); |
| 131 |
|
|
| 132 |
|
$file->setCompression(CompressionType::GZIP); |
| 133 |
|
|
| 134 |
|
static::assertEquals(CompressionType::GZIP, $file->getCompression()); |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
public function testSetCompressionReturnsIsFluent() |
| 138 |
|
{ |