Example #1
0
 public function testSetters()
 {
     $file = new File('test.zip', new Format\Zip());
     $file->setPath('test.tgz');
     $file->setFormat(new Format\TarGz());
     $this->assertEquals('test.tgz', $file->getPath());
     $this->assertInstanceOf('\\Distill\\Format\\TarGz', $file->getFormat());
 }