diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..6ea479fa
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,112 @@
+name: Tests
+
+on: [push, pull_request]
+
+jobs:
+ tests-legacy:
+ name: PHP ${{ matrix.php-versions }} Tests
+ runs-on: ${{ matrix.operating-system }}
+ strategy:
+ matrix:
+ operating-system: ['ubuntu-latest']
+ php-versions: ['5.4', '5.5', '5.6']
+
+ steps:
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php-versions }}
+ extensions: openssl
+ tools: phpunit:4.8
+
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: Run tests
+ run: phpunit --coverage-clover clover.xml tests
+
+ - uses: codecov/codecov-action@v2
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: ./clover.xml
+
+ tests-older:
+ name: PHP ${{ matrix.php-versions }} Tests
+ runs-on: ${{ matrix.operating-system }}
+ strategy:
+ matrix:
+ operating-system: ['ubuntu-latest']
+ php-versions: ['7.0', '7.1']
+
+ steps:
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php-versions }}
+ extensions: openssl
+ tools: phpunit:6.5
+
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: Run tests
+ run: phpunit --coverage-clover clover.xml tests
+
+ - uses: codecov/codecov-action@v2
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: ./clover.xml
+
+ tests-old:
+ name: PHP ${{ matrix.php-versions }} Tests
+ runs-on: ${{ matrix.operating-system }}
+ strategy:
+ matrix:
+ operating-system: ['ubuntu-latest']
+ php-versions: ['7.2', '7.3', '7.4']
+
+ steps:
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php-versions }}
+ extensions: openssl
+ tools: phpunit:8.5
+
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: Run tests
+ run: phpunit --coverage-clover clover.xml tests
+
+ - uses: codecov/codecov-action@v2
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: ./clover.xml
+
+ tests:
+ name: PHP ${{ matrix.php-versions }} Tests
+ runs-on: ${{ matrix.operating-system }}
+ strategy:
+ matrix:
+ operating-system: ['ubuntu-latest']
+ php-versions: ['8.0', '8.1']
+
+ steps:
+ - uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php-versions }}
+ extensions: openssl
+ tools: phpunit/phpunit:9.5
+
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: Run tests
+ run: phpunit --coverage-clover clover.xml tests
+
+ - uses: codecov/codecov-action@v2
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: ./clover.xml
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index e372b46e..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-sudo: false
-
-language: php
-
-matrix:
- fast_finish: true
- include:
- - php: 5.4
- dist: trusty
- - php: 5.5
- dist: trusty
- - php: 5.6
- - php: 7.0.27
- dist: trusty
- - php: 7.1
- dist: trusty
- - php: 7.2
- - php: 7.3
- - php: 7.4
- env:
- - EXECUTE_COVERAGE=true
- allow_failures:
- - php: hhvm
-
-script:
- - if [[ $EXECUTE_COVERAGE == 'true' ]]; then phpunit --coverage-clover clover.xml tests; fi
- - if [[ $EXECUTE_COVERAGE != 'true' ]]; then phpunit tests; fi
-
-after_success:
- - if [[ $EXECUTE_COVERAGE == 'true' ]]; then bash <(curl -s https://codecov.io/bash); fi
diff --git a/phpunit.xml b/phpunit.xml
new file mode 100644
index 00000000..4f326275
--- /dev/null
+++ b/phpunit.xml
@@ -0,0 +1,7 @@
+
+
+
+ src
+
+
+
diff --git a/tests/xmlsec-encrypt-noreplace.phpt b/tests/xmlsec-encrypt-noreplace.phpt
index a4fa9bb9..17d5a796 100644
--- a/tests/xmlsec-encrypt-noreplace.phpt
+++ b/tests/xmlsec-encrypt-noreplace.phpt
@@ -32,6 +32,7 @@ if ($newData !== $origData) {
if ($encNode->namespaceURI !== XMLSecEnc::XMLENCNS || $encNode->localName !== 'EncryptedData') {
echo "Encrypted node wasn't a -element.\n";
}
-
+echo "DONE\n";
?>
--EXPECTF--
+DONE