Skip to content

Commit c07c3d6

Browse files
authoredJun 11, 2022
Upgrade 2.0.0 (#13)
* BREAKING CHANGE: Moving the repository (getting rid of 'Refactorstudio'), therefore v2.0.0 * BREAKING CHANGE: Updated the classname from 'RefactorStudio' to 'RBoonzaijer' * support for php 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1 * get rid of external tools (travis-ci / scrutenizer) * automated testing with Github Actions (coverage reports are saved as artifacts)
1 parent d6b65fc commit c07c3d6

21 files changed

+337
-98
lines changed
 

‎.github/workflows/tests.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
name: Tests PHP ${{ matrix.php-version }}
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Validate composer.json and composer.lock
19+
run: composer validate --strict
20+
21+
- name: Setup PHP ${{ matrix.php-version }}
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php-version }}
25+
26+
- name: Install dependencies
27+
run: composer install --prefer-dist --no-progress
28+
29+
- name: Run test suite
30+
run: |
31+
mkdir ./coverage
32+
php -v > ./coverage/version-php.txt
33+
./vendor/bin/phpunit --version > ./coverage/version-phpunit.txt
34+
./vendor/bin/phpunit --configuration ./phpunit-${{ matrix.php-version }}.xml --coverage-clover ./coverage/coverage.clover --coverage-html ./coverage/html/
35+
36+
- name: Save coverage results
37+
uses: actions/upload-artifact@v3
38+
with:
39+
name: coverage-php${{ matrix.php-version }}
40+
path: ./coverage/

‎.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea
22
composer.lock
3-
vendor
3+
vendor
4+
/coverage/

‎.scrutinizer.yml

-7
This file was deleted.

‎.travis.yml

-16
This file was deleted.

‎LICENSE.md

+17-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
The MIT License (MIT)
1+
MIT License
22

3-
Copyright 2018 Refactor Studio - [www.refactorstudio.com](https://www.refactorstudio.com)
3+
Copyright (c) 2022 rboonzaijer
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
611

7-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
814

9-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
<p align="center">Convert an array to XML with PHP</p>
44

55
<p align="center">
6-
<a href="https://travis-ci.org/refactorstudio/php-array-to-xml"><img src="https://img.shields.io/travis/refactorstudio/php-array-to-xml/master.svg?style=flat-square" alt="Build Status"></a>
7-
<a href="https://scrutinizer-ci.com/g/refactorstudio/php-array-to-xml/"><img src="https://img.shields.io/scrutinizer/coverage/g/refactorstudio/php-array-to-xml.svg?style=flat-square" alt="Coverage Status"></a>
8-
<a href="https://scrutinizer-ci.com/g/refactorstudio/php-array-to-xml/"><img src="https://img.shields.io/scrutinizer/g/refactorstudio/php-array-to-xml.svg?style=flat-square" alt="Code Quality"></a>
6+
<a href="https://scrutinizer-ci.com/g/rboonzaijer/php-array-to-xml/"><img src="https://img.shields.io/scrutinizer/coverage/g/rboonzaijer/php-array-to-xml.svg?style=flat-square" alt="Coverage Status"></a>
7+
<a href="https://scrutinizer-ci.com/g/rboonzaijer/php-array-to-xml/"><img src="https://img.shields.io/scrutinizer/g/rboonzaijer/php-array-to-xml.svg?style=flat-square" alt="Code Quality"></a>
98
<a href="LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="License"></a>
109
</p>
1110

@@ -14,7 +13,7 @@
1413
## Install
1514

1615
```
17-
composer require refactorstudio/php-array-to-xml
16+
composer require rboonzaijer/php-array-to-xml
1817
```
1918

2019

@@ -23,7 +22,7 @@ composer require refactorstudio/php-array-to-xml
2322

2423
Basic example:
2524
```php
26-
use RefactorStudio\PhpArrayToXml\PhpArrayToXml;
25+
use RBoonzaijer\PhpArrayToXml\PhpArrayToXml;
2726

2827
$converter = new PhpArrayToXml();
2928

‎composer.json

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,40 @@
11
{
2-
"name": "refactorstudio/php-array-to-xml",
2+
"name": "rboonzaijer/php-array-to-xml",
33
"description": "Convert an array to XML with PHP",
44
"keywords": [
55
"php-array-to-xml",
6-
"refactorstudio",
76
"array-to-xml",
87
"array-to-xml-php",
98
"xml",
109
"parser",
1110
"array",
1211
"convert"
1312
],
14-
"homepage": "https://github.com/refactorstudio/php-array-to-xml",
13+
"homepage": "https://github.com/rboonzaijer/php-array-to-xml",
1514
"license": "MIT",
1615
"authors": [
1716
{
18-
"name": "Roel Boonzaijer",
19-
"email": "mail@refactorstudio.com",
20-
"homepage": "https://www.refactorstudio.com",
17+
"name": "R Boonzaijer",
18+
"email": "noreply@247web.nl",
19+
"homepage": "https://www.247web.nl",
2120
"role": "Developer"
2221
}
2322
],
2423
"require": {
25-
"php" : "^7.0"
24+
"php" : "^8.0|^7.0"
2625
},
2726
"require-dev": {
28-
"phpunit/phpunit" : "^6.3",
27+
"phpunit/phpunit" : "^9.5|^8.5|^7.5|^6.5",
2928
"mockery/mockery": "^1.0"
3029
},
3130
"autoload": {
3231
"psr-4": {
33-
"RefactorStudio\\PhpArrayToXml\\": "src"
32+
"RBoonzaijer\\PhpArrayToXml\\": "src"
3433
}
3534
},
3635
"autoload-dev": {
3736
"psr-4": {
38-
"RefactorStudio\\PhpArrayToXml\\Test\\": "tests"
37+
"RBoonzaijer\\PhpArrayToXml\\Test\\": "tests"
3938
}
4039
}
4140
}

‎phpunit-7.0.xml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- PHPUnit 6 PHP 7.0 - PHP 7.2 (https://phpunit.de/supported-versions.html) -->
3+
<phpunit backupGlobals="false"
4+
backupStaticAttributes="false"
5+
bootstrap="vendor/autoload.php"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false"
12+
syntaxCheck="false">
13+
14+
<filter>
15+
<whitelist>
16+
<directory>./src</directory>
17+
<exclude>
18+
<directory>./vendor</directory>
19+
<directory>./tests</directory>
20+
</exclude>
21+
</whitelist>
22+
</filter>
23+
24+
<testsuites>
25+
<testsuite name="PhpArrayToXml Test Suite">
26+
<directory>./tests/</directory>
27+
</testsuite>
28+
</testsuites>
29+
30+
</phpunit>

‎phpunit-7.1.xml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- PHPUnit 7 PHP 7.1 - PHP 7.3 (https://phpunit.de/supported-versions.html) -->
3+
<phpunit backupGlobals="false"
4+
backupStaticAttributes="false"
5+
bootstrap="vendor/autoload.php"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false"
12+
syntaxCheck="false">
13+
14+
<filter>
15+
<whitelist>
16+
<directory>./src</directory>
17+
<exclude>
18+
<directory>./vendor</directory>
19+
<directory>./tests</directory>
20+
</exclude>
21+
</whitelist>
22+
</filter>
23+
24+
<testsuites>
25+
<testsuite name="PhpArrayToXml Test Suite">
26+
<directory>./tests/</directory>
27+
</testsuite>
28+
</testsuites>
29+
30+
</phpunit>

‎phpunit-7.2.xml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- PHPUnit 8 >= PHP 7.2 (https://phpunit.de/supported-versions.html) -->
3+
<phpunit backupGlobals="false"
4+
backupStaticAttributes="false"
5+
bootstrap="vendor/autoload.php"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false"
12+
syntaxCheck="false">
13+
14+
<filter>
15+
<whitelist>
16+
<directory>./src</directory>
17+
<exclude>
18+
<directory>./vendor</directory>
19+
<directory>./tests</directory>
20+
</exclude>
21+
</whitelist>
22+
</filter>
23+
24+
<testsuites>
25+
<testsuite name="PhpArrayToXml Test Suite">
26+
<directory>./tests/</directory>
27+
</testsuite>
28+
</testsuites>
29+
30+
</phpunit>

‎phpunit-7.3.xml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- PHPUnit 9 >= PHP 7.3 (https://phpunit.de/supported-versions.html) -->
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
backupGlobals="false"
6+
backupStaticAttributes="false"
7+
bootstrap="vendor/autoload.php"
8+
colors="true"
9+
convertErrorsToExceptions="true"
10+
convertNoticesToExceptions="true"
11+
convertWarningsToExceptions="true"
12+
processIsolation="false"
13+
stopOnFailure="false"
14+
cacheResult ="false"
15+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
16+
<coverage>
17+
<include>
18+
<directory>./src</directory>
19+
</include>
20+
<exclude>
21+
<directory>./vendor</directory>
22+
<directory>./tests</directory>
23+
</exclude>
24+
</coverage>
25+
<testsuites>
26+
<testsuite name="PhpArrayToXml Test Suite">
27+
<directory>./tests/</directory>
28+
</testsuite>
29+
</testsuites>
30+
</phpunit>

‎phpunit-7.4.xml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- PHPUnit 9 >= PHP 7.3 (https://phpunit.de/supported-versions.html) -->
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
backupGlobals="false"
6+
backupStaticAttributes="false"
7+
bootstrap="vendor/autoload.php"
8+
colors="true"
9+
convertErrorsToExceptions="true"
10+
convertNoticesToExceptions="true"
11+
convertWarningsToExceptions="true"
12+
processIsolation="false"
13+
stopOnFailure="false"
14+
cacheResult ="false"
15+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
16+
<coverage>
17+
<include>
18+
<directory>./src</directory>
19+
</include>
20+
<exclude>
21+
<directory>./vendor</directory>
22+
<directory>./tests</directory>
23+
</exclude>
24+
</coverage>
25+
<testsuites>
26+
<testsuite name="PhpArrayToXml Test Suite">
27+
<directory>./tests/</directory>
28+
</testsuite>
29+
</testsuites>
30+
</phpunit>

‎phpunit-8.0.xml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- PHPUnit 9 >= PHP 7.3 (https://phpunit.de/supported-versions.html) -->
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
backupGlobals="false"
6+
backupStaticAttributes="false"
7+
bootstrap="vendor/autoload.php"
8+
colors="true"
9+
convertErrorsToExceptions="true"
10+
convertNoticesToExceptions="true"
11+
convertWarningsToExceptions="true"
12+
processIsolation="false"
13+
stopOnFailure="false"
14+
cacheResult ="false"
15+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
16+
<coverage>
17+
<include>
18+
<directory>./src</directory>
19+
</include>
20+
<exclude>
21+
<directory>./vendor</directory>
22+
<directory>./tests</directory>
23+
</exclude>
24+
</coverage>
25+
<testsuites>
26+
<testsuite name="PhpArrayToXml Test Suite">
27+
<directory>./tests/</directory>
28+
</testsuite>
29+
</testsuites>
30+
</phpunit>

0 commit comments

Comments
 (0)
Please sign in to comment.