Skip to content

Commit

Permalink
Merge pull request #33 from SimonFrings/tests
Browse files Browse the repository at this point in the history
Run tests on PHPUnit 9
  • Loading branch information
clue authored Aug 5, 2020
2 parents dc3524c + adbad13 commit 751300c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: php
# lock distro so new future defaults will not break the build
dist: trusty

matrix:
jobs:
include:
- php: 5.4
- php: 5.5
Expand All @@ -26,7 +26,7 @@ matrix:
- os: windows

install:
- composer install --no-interaction
- composer install

script:
- vendor/bin/phpunit --coverage-text
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"react/promise": "^2.7 || ^1.2.1"
},
"require-dev": {
"phpunit/phpunit": "^7.0 || ^6.0 || ^5.7 || ^4.8.35"
"phpunit/phpunit": "^9.0 || ^5.7 || ^4.8.35"
}
}
5 changes: 4 additions & 1 deletion tests/Io/LazyDatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ class LazyDatabaseTest extends TestCase
private $loop;
private $db;

public function setUp()
/**
* @before
*/
public function setUpDataBase()
{
$this->factory = $this->getMockBuilder('Clue\React\SQLite\Factory')->disableOriginalConstructor()->getMock();
$this->loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
Expand Down

0 comments on commit 751300c

Please sign in to comment.