assertNotEquals($entry->getValue(), $entry->getBytes(PelConvert::LITTLE_ENDIAN)); $this->assertEquals($entry->getValue(), $test_str); $this->assertEquals($entry->getBytes(PelConvert::LITTLE_ENDIAN), $test_str_ucs2_zt); // correct zero-terminated data from the exif $entry->setValue($test_str_ucs2_zt, true); $this->assertNotEquals($entry->getValue(), $entry->getBytes(PelConvert::LITTLE_ENDIAN)); $this->assertEquals($entry->getValue(), $test_str); $this->assertEquals($entry->getBytes(PelConvert::LITTLE_ENDIAN), $test_str_ucs2_zt); // incorrect data from exif $entry->setValue($test_str_ucs2, true); $this->assertNotEquals($entry->getValue(), $entry->getBytes(PelConvert::LITTLE_ENDIAN)); $this->assertEquals($entry->getValue(), $test_str); $this->assertEquals($entry->getBytes(PelConvert::LITTLE_ENDIAN), $test_str_ucs2_zt); } }