tests/integration/Node/LocalFileTest.php 1 location
|
@@ 129-137 (lines=9) @@
|
| 126 |
|
static::assertSame($file, $newFile); |
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
public function testSetCompressionModifiesTheEncoding() |
| 130 |
|
{ |
| 131 |
|
$file = new LocalFile(static::$dir . 'file_set_compression.test'); |
| 132 |
|
$file->put('uncompressed contents'); |
| 133 |
|
|
| 134 |
|
$file->setCompression(Gzip::NAME); |
| 135 |
|
|
| 136 |
|
static::assertEquals(Gzip::NAME, $file->getCompression()); |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
public function testSetCompressionReturnsIsFluent() |
| 140 |
|
{ |
tests/integration/Modify/Compress/FindCompressionTest.php 1 location
|
@@ 52-62 (lines=11) @@
|
| 49 |
|
$this->findCompression->setProcessFactory($this->processFactory); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
public function testGetFileCompressionForNonCompressedFile() |
| 53 |
|
{ |
| 54 |
|
$file = new LocalFile(static::$dir . 'uncompressed_file.test'); |
| 55 |
|
$file->put('some random text'); |
| 56 |
|
|
| 57 |
|
static::assertEquals( |
| 58 |
|
$file->getCompression(), |
| 59 |
|
$this->findCompression->getCompression($file) |
| 60 |
|
); |
| 61 |
|
static::assertEquals(CompressionFactory::TYPE_NONE, $file->getCompression()); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
public function testGetFileCompressionForGzipFile() |
| 65 |
|
{ |