Closed k00ni closed 7 years ago
Awesome stuff, thank you. Must be a pain with all that outdated code...
"Surprisingly" not :D
All tests run fine on PHP 5.6, 7.0 and 7.1 without any deeper adaptions. Saw other libraries which broke after running under PHP 7.0.
Btw. i am one of the main developers of Saft (here some outdated documentation), a high level RDF library for PHP, which main objective is to integrate major libraries like ARC2, Erfurt and EasyRdf. For ARC2, i have added support for SPARQL UPDATE (besides other stuff and fixes) so that ARC2 can handle queries like:
DELETE WHERE {
Graph <http://localhost/Saft/TestGraph/> {
?s ?p ?o .
}
}
We built the ARC2 class around your ARC2 classes, but support currently only store functionality. For instance, it intercepts queries and adapts them, if not supported by ARC2 (like the pasted DELETE WHERE query). That way, i can avoid most of the pain you mentioned (^_^)
Summary: I reworked the PHPUnit setup by first, adding it to composer.json and secondly, added a bootstrap.php in the test folder with basic includes.
Afterwards i adapted some test classes to get the test suite going. From now on, to run the test suite, just install vendors using
composer update
and runvendor/bin/phpunit
in the terminal:Highlights: