We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c631063 commit 42240bbCopy full SHA for 42240bb
tests/TarTestCase.php
@@ -662,12 +662,12 @@ public function testAddFileWithArchiveStreamIsClosed()
662
663
public function testAddFileWithInvalidFile()
664
{
665
- $this->expectException(ArchiveIOException::class);
+ $this->expectException(FileInfoException::class);
666
$archive = sys_get_temp_dir() . '/dwtartest' . md5(time()) . '.tar';
667
668
$tar = new Tar();
669
$tar->create($archive);
670
- $tar->addFile('archive_file', false);
+ $tar->addFile('archive_file', 'a-non-existing-file.txt');
671
}
672
673
public function testAddDataWithArchiveStreamIsClosed()
0 commit comments