Skip to content

Commit

Permalink
Enable testing on PHP 8 (#21)
Browse files Browse the repository at this point in the history
* Enable testing on PHP 8

* Update composer.json

* Add 8.0snapshot
  • Loading branch information
sanmai authored Nov 6, 2020
1 parent 48cf061 commit 5c67248
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ php:
- 7.2
- 7.3
- 7.4
- 8.0snapshot
- nightly

stages:
Expand All @@ -20,7 +21,7 @@ jobs:
- php: nightly
include:
- stage: analyze
php: 7.2
php: 7.4
install:
- composer install --prefer-dist
script:
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.13",
"pear/pear-core-minimal": "^1.10",
"phpunit/phpunit": "<6"
"phpunit/phpunit": ">=5 <10",
"sanmai/phpunit-legacy-adapter": "^6 || ^8"
},
"autoload": {
"psr-0": {
Expand Down
4 changes: 2 additions & 2 deletions tests/OLE_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
//
// $Id$

class OLE_Test extends PHPUnit_Framework_TestCase
class OLE_Test extends \LegacyPHPUnit\TestCase
{
public static function setUpBeforeClass()
public static function legacySetUpBeforeClass()
{
date_default_timezone_set('UTC');
}
Expand Down

0 comments on commit 5c67248

Please sign in to comment.