tests/integration/Modify/Compress/FindCompressionTest.php 1 location
|
@@ 63-73 (lines=11) @@
|
60 |
|
$this->findCompression->setProcessFactory($this->processFactory); |
61 |
|
} |
62 |
|
|
63 |
|
public function testGetFileCompressionForNonCompressedFile() |
64 |
|
{ |
65 |
|
$file = new LocalFile(static::$dir . 'uncompressed_file.test'); |
66 |
|
$file->put('some random text'); |
67 |
|
|
68 |
|
static::assertEquals( |
69 |
|
$file->getCompression(), |
70 |
|
$this->findCompression->getCompression($file) |
71 |
|
); |
72 |
|
static::assertEquals(CompressionFactory::TYPE_NONE, $file->getCompression()); |
73 |
|
} |
74 |
|
|
75 |
|
public function testGetFileCompressionForGzipFile() |
76 |
|
{ |
tests/integration/Node/LocalFileTest.php 1 location
|
@@ 140-148 (lines=9) @@
|
137 |
|
static::assertSame($file, $newFile); |
138 |
|
} |
139 |
|
|
140 |
|
public function testSetCompressionModifiesTheEncoding() |
141 |
|
{ |
142 |
|
$file = new LocalFile(static::$dir . 'file_set_compression.test'); |
143 |
|
$file->put('uncompressed contents'); |
144 |
|
|
145 |
|
$file->setCompression(Gzip::NAME); |
146 |
|
|
147 |
|
static::assertEquals(Gzip::NAME, $file->getCompression()); |
148 |
|
} |
149 |
|
|
150 |
|
public function testSetCompressionReturnsIsFluent() |
151 |
|
{ |