append() public method

Finale result will be the sum of the current reader and all appended ones.
public append ( Reader $reader ) : Reader
$reader Reader The reader to append
return Reader
 /**
  * @covers PHPExiftool\Reader::append
  * @covers PHPExiftool\Reader::all
  */
 public function testAppend()
 {
     $file1 = self::$tmpDir . '/test.jpg';
     $file2 = self::$tmpDir . '/test2.jpg';
     $file3 = self::$tmpDir . '/dir/CanonRaw.cr2';
     $this->assertEquals(1, count($this->object->files($file1)->all()));
     $reader = $this->getReader();
     $reader->files(array($file2, $file3));
     $this->assertEquals(3, count($this->object->append($reader)->all()));
 }
 /**
  * @covers PHPExiftool\Reader::append
  * @covers PHPExiftool\Reader::all
  */
 public function testAppend()
 {
     $file1 = self::$tmpDir . '/hello.exiftool';
     $file2 = self::$tmpDir . '/hello.world';
     $file3 = self::$tmpDir . '/dir/newfile.txt';
     $this->assertEquals(1, count($this->object->files($file1)->all()));
     $reader = $this->getReader();
     $reader->files(array($file2, $file3));
     $this->assertEquals(3, count($this->object->append($reader)->all()));
 }