18 $this->filePath = __DIR__ .
'/../../data/media/';
31 $this->assertEquals(
array(
'UTF-8 JPEG Comment — ¼' ),
$res[
'COM'] );
36 array(
'jpeg-comment-utf.jpg' ),
37 array(
'jpeg-padding-even.jpg' ),
38 array(
'jpeg-padding-odd.jpg' ),
45 $this->assertEquals(
array(
'ISO-8859-1 JPEG Comment - ¼' ),
$res[
'COM'] );
54 $this->assertEmpty(
$res[
'COM'] );
62 $this->assertEquals(
array(
'foo',
'bar' ),
$res[
'COM'] );
67 $expected = file_get_contents( $this->filePath .
'jpeg-xmp-psir.xmp' );
68 $this->assertEquals( $expected,
$res[
'XMP'] );
73 $expected =
'50686f746f73686f7020332e30003842494d04040000000000181c02190004746573741c02190003666f6f1c020000020004';
74 $this->assertEquals( $expected, bin2hex(
$res[
'PSIR'][0] ) );
79 $expected = file_get_contents( $this->filePath .
'jpeg-xmp-psir.xmp' );
80 $this->assertEquals( $expected,
$res[
'XMP'] );
87 $this->assertEquals(
'iptc-no-hash',
$res );
94 $this->assertEquals(
'iptc-bad-hash',
$res );
101 $this->assertEquals(
'iptc-good-hash',
$res );
107 $this->assertEquals( $expected,
$res[
'byteOrder'] );