Skip to content

Commit

Permalink
Merge pull request #3 from talis/move-dev-dependencies
Browse files Browse the repository at this point in the history
Move phpunit to require-dev
  • Loading branch information
rsinger authored Jun 5, 2020
2 parents c0245b0 + 6b278df commit 95cb401
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
language: php
dist: trusty
php:
- 5.5
- 5.4
- 5.3
- 7.0
- 7.4

install:
- composer install
- composer dumpautoload

script: phpunit ./test/unit
script: ./vendor/bin/phpunit ./test/unit
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
}
],
"require":{
"php": ">=5.3.0",
"phpunit/phpunit": ">=3.7.0@stable"
"php": ">=5.5"
},
"require-dev": {
"phpunit/phpunit": "^4.8"
},
"autoload":{
"psr-0": {
Expand Down
5 changes: 1 addition & 4 deletions test/unit/OpenURLTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
$root = dirname(dirname(__DIR__));
require_once $root . '/src/OpenURL/ContextObject.php';
require_once $root . '/src/OpenURL/Entity.php';

class OpenURLTest extends PHPUnit_Framework_TestCase {
class OpenURLTest extends \PHPUnit_Framework_TestCase {
public function testLoadKev() {
$kev = "url_ver=Z39.88-2004&url_tim=2003-04-11T10%3A09%3A15TZD&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&ctx_id=10_8&ctx_tim=2003-04-11T10%3A08%3A30TZD&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.aulast=Vergnaud&rft.auinit=J.-R.&rft.btitle=D%C3%A9pendances+et+niveaux+de+repr%C3%A9sentation+en+syntaxe&rft.date=1985&rft.pub=Benjamins&rft.place=Amsterdam%2C+Philadelphia&rfe_id=urn%3Aisbn%3A0262531283&rfe_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rfe.genre=book&rfe.aulast=Chomsky&rfe.auinit=N&rfe.btitle=The+Minimalist+Program&rfe.isbn=0262531283&rfe.date=1995&rfe.pub=The+MIT+Press&rfe.place=Cambridge%2C+Mass&svc_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Asch_svc&svc.abstract=yes&rfr_id=info%3Asid%2Febookco.com%3Abookreader";
$ctx = \OpenURL\ContextObject::loadKev($kev);
Expand Down

0 comments on commit 95cb401

Please sign in to comment.