Here are attached the test file and the OutputBuffer
class.
$this->assertStringEqualsFile($file2, yield $buffer);
fails with:
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-Binary String: 0x1f8b080006701b5900034bcbcf4f4a2c5248cecf2b49cd2be10200adcda2990f000000
+Binary String: 0x1f8b08000000000000034a03000000ffffca07000000ffffca07000000ffff4a02000000ffff4a04000000ffff2a02000000ffff5200000000ffff4a06000000ffffca07000000ffffca03000000ffff2a01000000ffff4a05000000ffffca03000000ffff2a01000000ffffe202000000ffff0300adcda2990f000000
$this->assertSame(\file_get_contents($file2), yield $buffer);
fails with:
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'pK��OJ,RH��+I�+��͢�'
+'J��������J��J��*��R��J��������*��J�����*������͢�'