mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 08:34:09 +02:00
try testing with older phpunit
This commit is contained in:
parent
0181f87246
commit
21897ce24c
2 changed files with 23 additions and 2 deletions
21
.github/workflows/ci.yaml
vendored
21
.github/workflows/ci.yaml
vendored
|
|
@ -58,3 +58,24 @@ jobs:
|
|||
- uses: codecov/codecov-action@v1
|
||||
with:
|
||||
files: ./coverage.xml
|
||||
|
||||
phpunit-8:
|
||||
runs-on: ubuntu-20.04
|
||||
name: Unit tests
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
php-version:
|
||||
- "7.2"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: "${{ matrix.php-version }}"
|
||||
coverage: pcov
|
||||
- name: Composer
|
||||
run: composer require --dev phpunit/phpunit ^8
|
||||
- name: PHPUnit Tests
|
||||
run: php ./vendor/bin/phpunit tests -c tests/phpunit.xml
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ class UrlCallbackTest extends TestCase {
|
|||
mkdir($dir);
|
||||
$path = \Icewind\Streams\UrlCallback::wrap($dir, null, null, null, null, $callback);
|
||||
rmdir($path);
|
||||
$this->assertFileDoesNotExist($dir);
|
||||
$this->assertFileNotExists($dir);
|
||||
$this->assertTrue($called);
|
||||
}
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ class UrlCallbackTest extends TestCase {
|
|||
touch($file);
|
||||
$path = \Icewind\Streams\UrlCallback::wrap($file, null, null, null, null, null, $callback);
|
||||
unlink($path);
|
||||
$this->assertFileDoesNotExist($file);
|
||||
$this->assertFileNotExists($file);
|
||||
$this->assertTrue($called);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue