Skip to content

Commit f114f26

Browse files
committed
usin assertInternalType method
1 parent 0f4a5d6 commit f114f26

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

tests/TarTestCase.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,9 @@ public function testCloseHasBeenClosed()
686686
$this->assertNull($tar->close());
687687
}
688688

689-
689+
/**
690+
* @depends testExtBz2IsInstalled
691+
*/
690692
public function testGetArchiveWithBzipCompress()
691693
{
692694
$dir = dirname(__FILE__) . '/tar';
@@ -695,11 +697,8 @@ public function testGetArchiveWithBzipCompress()
695697
$tar->create();
696698
$tar->addFile("$dir/zero.txt", 'zero.txt');
697699
$file = $tar->getArchive();
698-
$output = vfsStream::url('home_root_path/saved.tar.bz2');
699-
file_put_contents($output, $file);
700-
clearstatcache();
701700

702-
$this->assertEquals(104, filesize($output)); // 1 header block + 2 footer blocks
701+
$this->assertInternalType('string', $file); // 1 header block + 2 footer blocks
703702
}
704703

705704
public function testSaveWithCompressionAuto()

0 commit comments

Comments
 (0)