Files
XC_VM/tests/Unit/PhpM3u8/Data/Transformer/AttributeStringToArrayTest.php
T
Divarion_D 758a9cab0b style: apply K&R + tab formatting across the codebase (make cs-fix)
Mechanical, behaviour-preserving reformat produced by 'make cs-fix' under
the new build/phpcs.xml.dist ruleset: K&R braces, tab indentation, and the
other whitespace normalisations. No logic changes.
2026-09-13 14:14:23 +03:00

22 lines
541 B
PHP

<?php
namespace Chrisyue\PhpM3u8\Test\Data\Transformer;
use Chrisyue\PhpM3u8\Data\Transformer\AttributeStringToArray;
use PHPUnit\Framework\TestCase;
class AttributeStringToArrayTest extends TestCase {
public function testInvoke(): void {
$attr2Array = new AttributeStringToArray();
$string = 'FOO=BAR,URI="http://example.com/?p=1"';
$expected = [
'FOO' => 'BAR',
'URI' => '"http://example.com/?p=1"',
];
$this->assertEquals($expected, $attr2Array($string));
}
}