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

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
saidatom committed Jan 30, 2023
1 parent 497c153 commit bb1e45f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"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"
"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 bb1e45f

Please sign in to comment.