assertSame($text . "\n", (string) new TextStream($text)); $text = "first\nsecond\n"; $this->assertSame($text, (string) new TextStream($text)); } }