Source: tests/unit/SafeZipExtractTest.php · 214 lines, ~1143 statements · namespace: (global) · `declare(strict_types=1)`: no
Unit tests for safe_zip_extract() — the canonical safe ZIP extraction used by
the theme and plugin uploaders (RCE F2/F8 remediation).
Covers the happy path plus the zip-slip class of bugs: “../” traversal, Windows-style “..\” traversal, absolute paths, and the escape guard. Also verifies skip patterns are honoured.
| Alias | Fully-qualified name |
|---|---|
TestCase | PHPUnit\Framework\TestCase |
| Name | Value / expression | Line |
|---|---|---|
('SCRIPTLOG', true | define('SCRIPTLOG', true) | 1 |