Skip to content

Commit 97eb308

Browse files
committed
Add support for PHPUnit 6.x, remove 4.x
PHP 5.5 and PHPUnit 4 are both unsupported now.
1 parent 617b916 commit 97eb308

File tree

8 files changed

+15
-10
lines changed

8 files changed

+15
-10
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: php
22

33
php:
4-
- 5.5
54
- 5.6
65
- 7.0
6+
- 7.1
77

88
before_script:
99
- composer install --dev -o -n

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=5.5",
14+
"php": ">=5.6",
1515
"ck/File_MARC_Reference": "^1.0",
1616
"pear/file_marc": "^1.1"
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "^4.8 | ^5.5"
19+
"phpunit/phpunit": "^5.7 | ^6.0"
2020
},
2121
"autoload": {
2222
"psr-4": {

tests/CollectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace Scriptotek\Marc\Record;
44

5-
use PHPUnit_Framework_TestCase;
5+
use PHPUnit\Framework\TestCase;
66
use Scriptotek\Marc\Collection;
77

8-
class CollectionTest extends PHPUnit_Framework_TestCase
8+
class CollectionTest extends TestCase
99
{
1010
public function testEmptyCollection()
1111
{

tests/FieldsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use Scriptotek\Marc\Record;
45

5-
class IsbnFieldTest extends \PHPUnit_Framework_TestCase
6+
class IsbnFieldTest extends TestCase
67
{
78
public function testIsbn()
89
{

tests/QueryResultTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use Scriptotek\Marc\Record;
45
use Scriptotek\Marc\QueryResult;
56

6-
class QueryResultTest extends \PHPUnit_Framework_TestCase
7+
class QueryResultTest extends TestCase
78
{
89
protected $record;
910

tests/RecordTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use Scriptotek\Marc\Marc21;
45
use Scriptotek\Marc\Record;
56

6-
class RecordTest extends \PHPUnit_Framework_TestCase
7+
class RecordTest extends TestCase
78
{
89
public function testExampleWithNs()
910
{

tests/SubjectFieldTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use Scriptotek\Marc\Collection;
45
use Scriptotek\Marc\Fields\Subject;
56
use Scriptotek\Marc\Fields\UncontrolledSubject;
67

7-
class SubjectFieldTest extends \PHPUnit_Framework_TestCase
8+
class SubjectFieldTest extends TestCase
89
{
910
protected function getNthrecord($n)
1011
{

tests/TitleFieldTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use Scriptotek\Marc\Fields\Title;
45

5-
class TitleFieldTest extends \PHPUnit_Framework_TestCase
6+
class TitleFieldTest extends TestCase
67
{
78
/*
89
In records formulated according to ISBD principles, subfield $b contains

0 commit comments

Comments
 (0)