public function testGetContentsObject() { $file1 = new \Core\Filestore\Backends\FileLocal('core/tests/ivak_TV_Test_Screen.png.gz'); $file2 = new \Core\Filestore\Backends\FileLocal('core/tests/ivak_TV_Test_Screen.png.tar.gz'); $file3 = new \Core\Filestore\Backends\FileLocal('core/tests/ivak_TV_Test_Screen.png.zip'); $this->assertInstanceOf('\\Core\\Filestore\\Contents\\ContentGZ', $file1->getContentsObject()); $this->assertInstanceOf('\\Core\\Filestore\\Contents\\ContentTGZ', $file2->getContentsObject()); $this->assertInstanceOf('\\Core\\Filestore\\Contents\\ContentZIP', $file3->getContentsObject()); }