Skip to content

Commit a9e5d00

Browse files
Fix unit tests (#11)
1 parent 51ee69b commit a9e5d00

File tree

11 files changed

+1891
-84
lines changed

11 files changed

+1891
-84
lines changed

.github/workflows/ci.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
pull_request: null
5+
6+
jobs:
7+
run:
8+
runs-on: ${{ matrix.operating-system }}
9+
strategy:
10+
matrix:
11+
operating-system: [ubuntu-latest, windows-latest]
12+
php-versions: ['7.3', '7.4', '8.0', '8.1']
13+
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php-versions }}
22+
extensions: xmlreader, xmlwriter, gmp, mbstring
23+
tools: composer
24+
25+
- name: Install Dependencies
26+
run: composer install --prefer-dist
27+
28+
- name: Run PHPUnit
29+
run: ./vendor/bin/phpunit

.gitignore

Lines changed: 51 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,52 @@
1-
*~
2-
/composer.lock
3-
/*.komodoproject
4-
/nbproject/
5-
/phpunit.xml
1+
# Created by https://www.toptal.com/developers/gitignore/api/composer,phpunit,visualstudiocode
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=composer,phpunit,visualstudiocode
3+
4+
### Composer ###
5+
composer.phar
66
/vendor/
7+
8+
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
9+
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
10+
# composer.lock
11+
12+
### PHPUnit ###
13+
# Covers PHPUnit
14+
# Reference: https://phpunit.de/
15+
16+
# Generated files
17+
.phpunit.result.cache
18+
.phpunit.cache
19+
20+
# PHPUnit
21+
/app/phpunit.xml
22+
/phpunit.xml
23+
24+
# Build data
25+
/build/
26+
27+
### VisualStudioCode ###
28+
.vscode/*
29+
!.vscode/settings.json
30+
!.vscode/tasks.json
31+
!.vscode/launch.json
32+
!.vscode/extensions.json
33+
!.vscode/*.code-snippets
34+
35+
# Local History for Visual Studio Code
36+
.history/
37+
38+
# Built Visual Studio Code Extensions
39+
*.vsix
40+
41+
### VisualStudioCode Patch ###
42+
# Ignore all local history of files
43+
.history
44+
.ionide
45+
46+
# Support for Project snippet scope
47+
.vscode/*.code-snippets
48+
49+
# Ignore code-workspaces
50+
*.code-workspace
51+
52+
# End of https://www.toptal.com/developers/gitignore/api/composer,phpunit,visualstudiocode

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"name": "casperbiering/dotnet-binary-xml",
33
"description": "Parsing and writing of .NET Binary Format",
44
"require": {
5-
"php": ">=5.3",
5+
"php": ">=7.3",
66
"ext-xmlreader": "*",
77
"ext-xmlwriter": "*",
88
"ext-gmp": "*",
99
"ext-mbstring": "*"
1010
},
1111
"require-dev": {
12-
"phpunit/phpunit": "~4.8"
12+
"phpunit/phpunit": "^9.5"
1313
},
1414
"autoload": {
1515
"psr-4": {

0 commit comments

Comments
 (0)