|
@@ 34-40 (lines=7) @@
|
| 31 |
|
$this->factory = new CompressionFactory(); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
public function testGetCompressorForGzipReturnsGzip() |
| 35 |
|
{ |
| 36 |
|
$object = $this->factory->getCompressor(Gzip::NAME); |
| 37 |
|
static::assertInstanceOf(Gzip::class, $object); |
| 38 |
|
$object = $this->factory->getDeCompressor(Gzip::NAME); |
| 39 |
|
static::assertInstanceOf(Gzip::class, $object); |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
public function testGetCompressorForZipReturnsZip() |
| 43 |
|
{ |
|
@@ 42-48 (lines=7) @@
|
| 39 |
|
static::assertInstanceOf(Gzip::class, $object); |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
public function testGetCompressorForZipReturnsZip() |
| 43 |
|
{ |
| 44 |
|
$object = $this->factory->getCompressor(Zip::NAME); |
| 45 |
|
static::assertInstanceOf(Zip::class, $object); |
| 46 |
|
$object = $this->factory->getDeCompressor(Zip::NAME); |
| 47 |
|
static::assertInstanceOf(Zip::class, $object); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
public function testGetCompressorForNoneWillThrowAnException() |
| 51 |
|
{ |