mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-05 12:02:27 +02:00
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.
30 lines
727 B
PHP
30 lines
727 B
PHP
<?php
|
|
|
|
|
|
namespace Chrisyue\PhpM3u8\Test\Data\Value\Attribute;
|
|
|
|
use Chrisyue\PhpM3u8\Data\Value\Attribute\Resolution;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class ResolutionTest extends TestCase {
|
|
/**
|
|
* @dataProvider dataProvider
|
|
*/
|
|
public function testFromString($string, Resolution $resolution): void {
|
|
$this->assertEquals($resolution, Resolution::fromString($string));
|
|
}
|
|
|
|
/**
|
|
* @dataProvider dataProvider
|
|
*/
|
|
public function testToString($string, Resolution $resolution): void {
|
|
$this->assertEquals($string, (string) $resolution);
|
|
}
|
|
|
|
public static function dataProvider(): array {
|
|
return [
|
|
['800x600', new Resolution(800, 600)],
|
|
];
|
|
}
|
|
}
|