|
@@ 23-29 (lines=7) @@
|
| 20 |
|
$this->factory = new CompressionFactory(); |
| 21 |
|
} |
| 22 |
|
|
| 23 |
|
public function testGetCompressorForGzipReturnsGzip() |
| 24 |
|
{ |
| 25 |
|
$object = $this->factory->getCompressor(Gzip::NAME); |
| 26 |
|
static::assertInstanceOf(Gzip::class, $object); |
| 27 |
|
$object = $this->factory->getDeCompressor(Gzip::NAME); |
| 28 |
|
static::assertInstanceOf(Gzip::class, $object); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
public function testGetCompressorForZipReturnsZip() |
| 32 |
|
{ |
|
@@ 31-37 (lines=7) @@
|
| 28 |
|
static::assertInstanceOf(Gzip::class, $object); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
public function testGetCompressorForZipReturnsZip() |
| 32 |
|
{ |
| 33 |
|
$object = $this->factory->getCompressor(Zip::NAME); |
| 34 |
|
static::assertInstanceOf(Zip::class, $object); |
| 35 |
|
$object = $this->factory->getDeCompressor(Zip::NAME); |
| 36 |
|
static::assertInstanceOf(Zip::class, $object); |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
public function testGetCompressorForNoneWillThrowAnException() |
| 40 |
|
{ |