You are here

public function DumperTest::testBinaryDataIsDumpedBase64Encoded in Lockr 7.3

File

vendor/symfony/yaml/Tests/DumperTest.php, line 301

Class

DumperTest

Namespace

Symfony\Component\Yaml\Tests

Code

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,
  ]));
}