Skip to content
Open
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
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
repo_token: c1DEnhEDEsdeHDUepRI24RibVJ6yDw2kN
src_dir: source
coverage_clover: build/logs/clover.xml
json_path: build/logs/coveralls-upload.json
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/.idea
/*.code-workspace
/build/
/composer.lock
/doc/api/
/private/
/sandbox/
/vendor/
.phpunit.result.cache
13 changes: 6 additions & 7 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
build:
environment:
php:
version: 8.1.24
version: 8.2
tests:
override:
-
command: ./support/init && ./support/test && ./support/coverage clover-code-coverage
command: composer install --prefer-dist --no-interaction && php vendor/bin/phpunit --coverage-clover build/logs/clover.xml
coverage:
file: 'sandbox/code-coverage-report/clover.xml'
file: 'build/logs/clover.xml'
format: 'php-clover'
cache:
directories:
- sandbox/composer/
- vendor/
filter:
paths:
- source/
- src/
excluded_paths:
- sandbox/
- specs/
- support/
- tests/
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ php:
- 8.2
cache:
directories:
- sandbox/composer/
- vendor/
install:
- composer self-update
- git config --global github.accesstoken 21fd5f444e024f66f292461ca7ea7243f63a200d
- ./support/init
- composer install --prefer-dist --no-interaction
script:
- ./support/test
after_script:
- ./support/coveralls "$TRAVIS_JOB_ID"
- php vendor/bin/phpunit --no-coverage
notifications:
email: false
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[apis]: https://github.com/servo-php/fluidxml/wiki/APIs
[gettingstarted]: https://github.com/servo-php/fluidxml/wiki/Getting-Started
[examples]: https://github.com/servo-php/fluidxml/blob/master/doc/Examples/
[specs]: https://github.com/servo-php/fluidxml/blob/master/specs/FluidXml.php
[specs]: https://github.com/downforcetech/fluidxml.php/blob/main/tests/FluidXmlTest.php
[wiki]: https://github.com/servo-php/fluidxml/wiki
[bsd]: https://opensource.org/licenses/BSD-2-Clause
[license]: https://github.com/servo-php/fluidxml/blob/master/LICENSE.txt
Expand Down Expand Up @@ -309,7 +309,7 @@ Follow the [Getting Started tutorial][gettingstarted] to become a [ninja][ninja]

Many other examples are available:
- inside the [`doc/Examples/`][examples] folder
- inside the [`specs/FluidXml.php`][specs] file (as test cases)
- inside the [`tests/FluidXmlTest.php`][specs] file (as test cases)

All them cover from the simplest case to the most complex scenario.

Expand Down
10 changes: 4 additions & 6 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
machine:
php:
version: 8.1.24
version: 8.2
dependencies:
pre:
- git config --global github.accesstoken 21fd5f444e024f66f292461ca7ea7243f63a200d
override:
- ./support/init
- composer install --prefer-dist --no-interaction
cache_directories:
- ./sandbox/composer/
- ./vendor/
test:
override:
- ./support/test
- php vendor/bin/phpunit --no-coverage
13 changes: 4 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@
"role": "Developer"
}
],
"config": {
"vendor-dir": "./sandbox/composer/"
},
"autoload": {
"files": ["./source/FluidXml/fluid.php"],
"files": ["./src/FluidXml/fluid.php"],
"psr-4": {
"FluidXml\\": "./source/FluidXml/"
"FluidXml\\": "./src/FluidXml/"
}
},
"require": {
Expand All @@ -29,9 +26,7 @@
"ext-simplexml": "*"
},
"require-dev": {
"peridot-php/peridot": "1",
"peridot-php/peridot-code-coverage-reporters": "1",
"apigen/apigen": "4",
"rector/rector": "0.18"
"phpunit/phpunit": "^11",
"rector/rector": "^2.0"
}
}
16 changes: 16 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true">
<testsuites>
<testsuite name="FluidXml">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>src</directory>
</include>
</source>
</phpunit>
13 changes: 5 additions & 8 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,20 @@

use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/doc',
__DIR__ . '/source',
__DIR__ . '/specs',
__DIR__ . '/support',
__DIR__ . '/src',
__DIR__ . '/tests',
]);

$rectorConfig->rules([
InlineConstructorDefaultToPropertyRector::class,
NullToStrictStringFuncCallArgRector::class,
InlineConstructorDefaultToPropertyRector::class,
]);

$rectorConfig->sets([
LevelSetList::UP_TO_PHP_82
SetList::PHP_82,
]);
};
123 changes: 0 additions & 123 deletions source/FluidXml/FluidHelper.php

This file was deleted.

57 changes: 0 additions & 57 deletions specs/.common.php

This file was deleted.

Loading