Skip to content

Commit

Permalink
Fix CI on Windows (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen committed Oct 18, 2021
1 parent 48a1637 commit 71aa36a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/php.yml
Expand Up @@ -55,6 +55,9 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '${{ matrix.php }}'
tools: phpunit
coverage: xdebug
extensions: xdebug
- name: Run PHPUnit
run: php ./vendor/bin/phpunit --coverage-clover=coverage.clover.xml
- name: Upload coverage results to Coveralls
Expand Down
8 changes: 4 additions & 4 deletions test/ZipStreamTest.php
Expand Up @@ -76,7 +76,7 @@ public function testAddFile(): void
$tmpDir = $this->validateAndExtractZip($tmp);

$files = $this->getRecursiveFileList($tmpDir);
$this->assertEquals(['sample.txt', 'test/sample.txt'], $files);
$this->assertEquals(['sample.txt', 'test' . DIRECTORY_SEPARATOR . 'sample.txt'], $files);

$this->assertStringEqualsFile($tmpDir . '/sample.txt', 'Sample String Data');
$this->assertStringEqualsFile($tmpDir . '/test/sample.txt', 'More Simple Sample Data');
Expand Down Expand Up @@ -308,7 +308,7 @@ public function testAddFileFromPath(): void
$tmpDir = $this->validateAndExtractZip($tmp);

$files = $this->getRecursiveFileList($tmpDir);
$this->assertEquals(array('sample.txt', 'test/sample.txt'), $files);
$this->assertEquals(array('sample.txt', 'test' . DIRECTORY_SEPARATOR . 'sample.txt'), $files);

$this->assertStringEqualsFile($tmpDir . '/sample.txt', 'Sample String Data');
$this->assertStringEqualsFile($tmpDir . '/test/sample.txt', 'More Simple Sample Data');
Expand Down Expand Up @@ -434,7 +434,7 @@ public function testAddFileFromStream(): void
$tmpDir = $this->validateAndExtractZip($tmp);

$files = $this->getRecursiveFileList($tmpDir);
$this->assertEquals(array('sample.txt', 'test/sample.txt'), $files);
$this->assertEquals(array('sample.txt', 'test' . DIRECTORY_SEPARATOR . 'sample.txt'), $files);

$this->assertStringEqualsFile(__FILE__, file_get_contents($tmpDir . '/sample.txt'));
$this->assertStringEqualsFile($tmpDir . '/test/sample.txt', 'More Simple Sample Data');
Expand Down Expand Up @@ -580,7 +580,7 @@ public function testCreateArchiveWithFlushOptionSet(): void
$tmpDir = $this->validateAndExtractZip($tmp);

$files = $this->getRecursiveFileList($tmpDir);
$this->assertEquals(['sample.txt', 'test/sample.txt'], $files);
$this->assertEquals(['sample.txt', 'test' . DIRECTORY_SEPARATOR . 'sample.txt'], $files);

$this->assertStringEqualsFile($tmpDir . '/sample.txt', 'Sample String Data');
$this->assertStringEqualsFile($tmpDir . '/test/sample.txt', 'More Simple Sample Data');
Expand Down

0 comments on commit 71aa36a

Please sign in to comment.