You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
527 B
22 lines
527 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace ZipStream\Test\Zs;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use ZipStream\Zs\ExtendedInformationExtraField;
|
|
|
|
class ExtendedInformationExtraFieldTest extends TestCase
|
|
{
|
|
public function testSerializesCorrectly(): void
|
|
{
|
|
$extraField = ExtendedInformationExtraField::generate();
|
|
|
|
$this->assertSame(
|
|
bin2hex((string) $extraField),
|
|
'5356' . // 2 bytes; Tag for this "extra" block type
|
|
'0000' // 2 bytes; TODO: Document
|
|
);
|
|
}
|
|
}
|
|
|