Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/monara/public_html/test.athavaneng.com/themes.php on line 99

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
. namespace core_files; use advanced_testcase; use core_files\local\archive_writer\zip_writer; /** * Unit tests for \core_files\archive_writer. * * @package core_files * @category test * @copyright 2020 Mark Nelson * @license http://www.gnu.org/copyleft/gpl.html GNU Public License * @covers \core_files\archive_writer */ class archive_writer_test extends advanced_testcase { /** * Test get_file_writer(). */ public function test_get_file_writer(): void { $zipwriter = archive_writer::get_file_writer('file.zip', archive_writer::ZIP_WRITER); $this->assertInstanceOf(zip_writer::class, $zipwriter); $this->assertTrue(file_exists($zipwriter->get_path_to_zip())); } /** * Test get_stream_writer(). */ public function test_get_stream_writer(): void { $zipwriter = archive_writer::get_stream_writer('path/to/file.txt', archive_writer::ZIP_WRITER); $this->assertInstanceOf(zip_writer::class, $zipwriter); } }