Skip to content

Commit b2ccb77

Browse files
authored
Allow Windows to run the FetchTest (#52)
* Updated donatj/mock-webserver * Allowed FetchTest to run under Windows * Upgraded donatj/mock-webserver to 2.6
1 parent c6d0be5 commit b2ccb77

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

.github/workflows/build.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,8 @@ jobs:
5757
- name: Check codestyle
5858
run: composer check
5959

60-
- name: Run test suite (Full)
60+
- name: Run test suite
6161
run: composer phpunit
62-
if: ${{ matrix.host-os != 'windows-latest' }}
63-
64-
- name: Run test suite (Windows)
65-
run: phpdbg -qrr ./vendor/bin/phpunit --testsuite BagIt-Windows
66-
if: ${{ matrix.host-os == 'windows-latest' }}
6762

6863
- name: Upload coverage to Codecov
6964
uses: codecov/codecov-action@v1

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"phpunit/phpunit": "^9.0",
2626
"sebastian/phpcpd": "^6.0",
2727
"squizlabs/php_codesniffer": "^3.5",
28-
"donatj/mock-webserver": "^2.1",
28+
"donatj/mock-webserver": "^2.6",
2929
"phpstan/phpstan": "^1.4"
3030
},
3131
"autoload": {
@@ -50,7 +50,7 @@
5050
"./vendor/bin/phpcpd --suffix='.php' src"
5151
],
5252
"phpunit": [
53-
"phpdbg -qrr ./vendor/bin/phpunit --testsuite BagIt"
53+
"phpdbg -qrr ./vendor/bin/phpunit -d memory_limit=-1 --testsuite BagIt"
5454
],
5555
"test": [
5656
"@check",

phpunit.xml.dist

+1-7
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,7 @@
2020
</coverage>
2121
<testsuites>
2222
<testsuite name="BagIt">
23-
<directory suffix=".php">./tests</directory>
24-
<exclude>./tests/BagItTestFramework.php</exclude>
25-
</testsuite>
26-
<testsuite name="BagIt-Windows">
27-
<directory suffix=".php">./tests</directory>
28-
<exclude>./tests/BagItTestFramework.php</exclude>
29-
<exclude>./tests/FetchTest.php</exclude>
23+
<directory suffix="Test.php">./tests</directory>
3024
</testsuite>
3125
</testsuites>
3226
<logging/>

0 commit comments

Comments
 (0)