Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/fix-cs-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
name: Coding Standards

jobs:
open-pr-for-cs-violations:
fix-cs-issues:
name: PHP-CS-Fixer
runs-on: ubuntu-22.04
if: github.actor != 'dependabot[bot]'
Expand All @@ -18,7 +18,7 @@ jobs:
ref: ${{ github.head_ref }}

- name: Run PHP-CS-Fixer
uses: docker://ghcr.io/php-cs-fixer/php-cs-fixer:3.62.0-php8.3
uses: docker://ghcr.io/php-cs-fixer/php-cs-fixer:3.89.2-php8.4
with:
args: "fix --show-progress=dots"

Expand Down
40 changes: 23 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,33 @@ on:
- master
pull_request:

env:
SYMFONY_DEPRECATIONS_HELPER: weak

jobs:
build:
runs-on: ubuntu-latest
PHPUnit:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-version: [ '7.2', '7.4', '8.1', '8.2' ]
coverage: none
dependency-version: [ prefer-stable ]

name: PHP ${{ matrix.php-version }} - ${{ matrix.dependency-version }}

include:
- { php-version: 8.1, dependency-version: prefer-lowest }
- { php-version: 8.3, dependency-version: prefer-stable }
- { php-version: 8.4, dependency-version: prefer-stable }
name: PHPUnit (PHP ${{matrix.php-version}}, ${{ matrix.dependency-version }})
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
tools: composer:v2
- uses: actions/cache@v4
with:
php-version: ${{ matrix.php-version }}
coverage: none
extensions: dom
- name: Install dependencies
run: composer update --no-interaction --prefer-dist --${{ matrix.dependency-version}} --no-progress --no-suggest
- name: Run test suite
run: vendor/bin/phpunit
path: vendor
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.dependency-version }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.dependency-version }}-
- run: composer update --${{ matrix.dependency-version }} --no-interaction --no-scripts --no-progress --ansi
- run: composer show
- run: vendor/bin/phpunit --display-warnings --display-deprecations
1 change: 1 addition & 0 deletions src/Webfactory/Dom/BaseParsingHelper.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* (c) webfactory GmbH <info@webfactory.de>
*
Expand Down
1 change: 1 addition & 0 deletions src/Webfactory/Dom/Exception/EmptyXMLStringException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* (c) webfactory GmbH <info@webfactory.de>
*
Expand Down
1 change: 1 addition & 0 deletions src/Webfactory/Dom/Exception/ParsingException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* (c) webfactory GmbH <info@webfactory.de>
*
Expand Down
1 change: 1 addition & 0 deletions src/Webfactory/Dom/Exception/ParsingHelperException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* (c) webfactory GmbH <info@webfactory.de>
*
Expand Down
1 change: 1 addition & 0 deletions src/Webfactory/Dom/HTMLParsingHelper.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* (c) webfactory GmbH <info@webfactory.de>
*
Expand Down
1 change: 1 addition & 0 deletions src/Webfactory/Dom/PolyglotHTML5ParsingHelper.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* (c) webfactory GmbH <info@webfactory.de>
*
Expand Down
1 change: 1 addition & 0 deletions src/Webfactory/Dom/XHTML10ParsingHelper.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* (c) webfactory GmbH <info@webfactory.de>
*
Expand Down
1 change: 1 addition & 0 deletions tests/Webfactory/Dom/Test/BaseParsingHelperTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* (c) webfactory GmbH <info@webfactory.de>
*
Expand Down
1 change: 1 addition & 0 deletions tests/Webfactory/Dom/Test/HTMLParsingHelperTestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* (c) webfactory GmbH <info@webfactory.de>
*
Expand Down
3 changes: 2 additions & 1 deletion tests/Webfactory/Dom/Test/ParsingHelperTestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* (c) webfactory GmbH <info@webfactory.de>
*
Expand Down Expand Up @@ -26,7 +27,7 @@ protected function readDumpAssertFragment(
$fragment,
$result = null,
$declaredNamespacesInDump = null,
$declaredNamespacesInRead = null
$declaredNamespacesInRead = null,
): void {
if (!$result) {
$result = $fragment;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* (c) webfactory GmbH <info@webfactory.de>
*
Expand Down
1 change: 1 addition & 0 deletions tests/Webfactory/Dom/Test/XHTML10ParsingHelperTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* (c) webfactory GmbH <info@webfactory.de>
*
Expand Down