Skip to content

Commit 1161718

Browse files
committed
Update namespace of test rules repository
1 parent b287b91 commit 1161718

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/php.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
echo "::set-output name=date::$(date "+%m")"
4343
4444
- uses: actions/cache@v2
45+
id: cache
4546
with:
4647
path: ${{ steps.composer-cache.outputs.dir }}
4748
key: ${{ runner.os }}-composer-${{ steps.composer-cache.outputs.date }}-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }}
@@ -69,7 +70,8 @@ jobs:
6970
run: composer run-script phpunit
7071

7172
# Ensure the next test run fetches the latest test ruleset.
72-
- name: Remove httpwg/structured-header-tests from composer cache
73+
- name: Cleanup composer cache
74+
if: steps.cache.outputs.cache-hit != 'true'
7375
run: rm -rf $(composer config cache-files-dir)/httpwg
7476

7577
- name: Upload code coverage report

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"require-dev": {
3232
"ext-json": "*",
33-
"httpwg/structured-header-tests": "*@dev",
33+
"httpwg/structured-field-tests": "*@dev",
3434
"paragonie/constant_time_encoding": "^2.3",
3535
"phpunit/phpunit": "^8.5 || ^9.1",
3636
"squizlabs/php_codesniffer": "^3.5"
@@ -39,14 +39,14 @@
3939
{
4040
"type": "package",
4141
"package": {
42-
"name": "httpwg/structured-header-tests",
42+
"name": "httpwg/structured-field-tests",
4343
"version": "dev-master",
4444
"dist": {
45-
"url": "https://github.com/httpwg/structured-header-tests/archive/master.zip",
45+
"url": "https://github.com/httpwg/structured-field-tests/archive/master.zip",
4646
"type": "zip"
4747
},
4848
"source": {
49-
"url": "[email protected]:httpwg/structured-header-tests.git",
49+
"url": "[email protected]:httpwg/structured-field-tests.git",
5050
"type": "git",
5151
"reference": "master"
5252
}

tests/RulesetTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ abstract class RulesetTest extends TestCase
3737

3838
private function rulesetDataProvider()
3939
{
40-
$path = __DIR__ . '/../vendor/httpwg/structured-header-tests/' . $this->ruleset . '.json';
40+
$path = __DIR__ . '/../vendor/httpwg/structured-field-tests/' . $this->ruleset . '.json';
4141
if (!file_exists($path)) {
4242
throw new \RuntimeException('Ruleset file does not exist');
4343
}

0 commit comments

Comments
 (0)