Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from square-bit/php8
Browse files Browse the repository at this point in the history
Support PHP8
  • Loading branch information
Pin0 authored Dec 5, 2023
2 parents 2d96b5d + bb1e45f commit da51d69
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ php:
- 5.5
- 5.6
- 7.0
- 7.4
- 8.0
- 8.1
- 8.2
- hhvm

install:
Expand All @@ -18,4 +22,4 @@ script:
- ./vendor/bin/phpcs --standard=psr2 ./src

after_script:
- ./vendor/bin/coveralls -v --exclude-no-stmt
- ./vendor/bin/coveralls -v --exclude-no-stmt
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@
},
"require": {
"psr/http-message": "^1.0",
"guzzlehttp/psr7": "^1.2"
"guzzlehttp/psr7": "^1.2 || ^2.4"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"zendframework/zend-diactoros": "^1.1",
"squizlabs/php_codesniffer": "^2.3",
"satooshi/php-coveralls": "^0.6.1",
"jameshalsall/licenser": "dev-master"
"phpunit/phpunit": "^4.8 || ^8.5 || ^9.5",
"laminas/laminas-diactoros": "^1.1 || ^2.0",
"squizlabs/php_codesniffer": "^2.3 || ^3.7",
"php-coveralls/php-coveralls": "^1.1 || ^2.5",
"jameshalsall/licenser": "dev-master",
"ext-dom": "*"
},
"scripts": {
"post-install-cmd": [
Expand Down
5 changes: 3 additions & 2 deletions tests/ProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

namespace Test\Picturae\OaiPmh;

use Laminas\Diactoros\ServerRequest;
use PHPUnit\Framework\TestCase;
use Picturae\OaiPmh\Exception\BadResumptionTokenException;
use Picturae\OaiPmh\Exception\IdDoesNotExistException;
use Picturae\OaiPmh\Implementation\MetadataFormatType;
Expand All @@ -30,9 +32,8 @@
use Picturae\OaiPmh\Implementation\Set;
use Picturae\OaiPmh\Implementation\SetList;
use Psr\Http\Message\ResponseInterface;
use Zend\Diactoros\ServerRequest;

class ProviderTest extends \PHPUnit_Framework_TestCase
class ProviderTest extends TestCase
{
private function getProvider()
{
Expand Down
8 changes: 5 additions & 3 deletions tests/Validator/SetSpecValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@

namespace Test\Picturae\OaiPmh\Validator;

class SetSpecValidatorTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class SetSpecValidatorTest extends TestCase
{

/**
*
* @dataProvider validSpecProvider
Expand All @@ -34,7 +36,7 @@ public function testValidSpec($value, $expected)
$return = $header->isValid($value);
$this->assertEquals($expected, $return);
}

public function validSpecProvider()
{
return [
Expand Down

0 comments on commit da51d69

Please sign in to comment.