Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / lsolesen / pel / test / PelEntryUserCommentTest.php
1 <?php
2
3 /**
4  * PEL: PHP Exif Library.
5  * A library with support for reading and
6  * writing all Exif headers in JPEG and TIFF images using PHP.
7  *
8  * Copyright (C) 2004, 2006 Martin Geisler.
9  * Copyright (C) 2017 Johannes Weberhofer
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program in the file COPYING; if not, write to the
23  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
24  * Boston, MA 02110-1301 USA
25  */
26 use lsolesen\pel\PelEntryUserComment;
27 use PHPUnit\Framework\TestCase;
28
29 class PelEntryUserCommentTest extends TestCase
30 {
31
32     function testUsercomment()
33     {
34         $entry = new PelEntryUserComment();
35         $this->assertEquals($entry->getComponents(), 8);
36         $this->assertEquals($entry->getValue(), '');
37         $this->assertEquals($entry->getEncoding(), 'ASCII');
38
39         $entry->setValue('Hello!');
40         $this->assertEquals($entry->getComponents(), 14);
41         $this->assertEquals($entry->getValue(), 'Hello!');
42         $this->assertEquals($entry->getEncoding(), 'ASCII');
43     }
44 }