Skip to content

Commit 42240bb

Browse files
author
Erwin Derksen
committed
Corrected unit test testAddFileWithInvalidFile()
1 parent c631063 commit 42240bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/TarTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,12 +662,12 @@ public function testAddFileWithArchiveStreamIsClosed()
662662

663663
public function testAddFileWithInvalidFile()
664664
{
665-
$this->expectException(ArchiveIOException::class);
665+
$this->expectException(FileInfoException::class);
666666
$archive = sys_get_temp_dir() . '/dwtartest' . md5(time()) . '.tar';
667667

668668
$tar = new Tar();
669669
$tar->create($archive);
670-
$tar->addFile('archive_file', false);
670+
$tar->addFile('archive_file', 'a-non-existing-file.txt');
671671
}
672672

673673
public function testAddDataWithArchiveStreamIsClosed()

0 commit comments

Comments
 (0)