public function DumperTest::testBinaryDataIsDumpedBase64Encoded in Lockr 7.3
File
- vendor/
symfony/ yaml/ Tests/ DumperTest.php, line 301
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testBinaryDataIsDumpedBase64Encoded() {
$binaryData = file_get_contents(__DIR__ . '/Fixtures/arrow.gif');
$expected = '{ data: !!binary ' . base64_encode($binaryData) . ' }';
$this
->assertSame($expected, $this->dumper
->dump([
'data' => $binaryData,
]));
}