mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-04 20:03:11 +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.
17 lines
420 B
PHP
17 lines
420 B
PHP
<?php
|
|
|
|
namespace Chrisyue\PhpM3u8\Test\Stream;
|
|
|
|
use Chrisyue\PhpM3u8\Stream\TextStream;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class TextStreamTest extends TestCase {
|
|
public function testToString(): void {
|
|
$text = "first\nsecond";
|
|
$this->assertSame($text . "\n", (string) new TextStream($text));
|
|
|
|
$text = "first\nsecond\n";
|
|
$this->assertSame($text, (string) new TextStream($text));
|
|
}
|
|
}
|