Skip to content

Commit 751300c

Browse files
authored
Merge pull request #33 from SimonFrings/tests
Run tests on PHPUnit 9
2 parents dc3524c + adbad13 commit 751300c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: php
33
# lock distro so new future defaults will not break the build
44
dist: trusty
55

6-
matrix:
6+
jobs:
77
include:
88
- php: 5.4
99
- php: 5.5
@@ -26,7 +26,7 @@ matrix:
2626
- os: windows
2727

2828
install:
29-
- composer install --no-interaction
29+
- composer install
3030

3131
script:
3232
- vendor/bin/phpunit --coverage-text

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
"react/promise": "^2.7 || ^1.2.1"
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": "^7.0 || ^6.0 || ^5.7 || ^4.8.35"
28+
"phpunit/phpunit": "^9.0 || ^5.7 || ^4.8.35"
2929
}
3030
}

tests/Io/LazyDatabaseTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ class LazyDatabaseTest extends TestCase
1313
private $loop;
1414
private $db;
1515

16-
public function setUp()
16+
/**
17+
* @before
18+
*/
19+
public function setUpDataBase()
1720
{
1821
$this->factory = $this->getMockBuilder('Clue\React\SQLite\Factory')->disableOriginalConstructor()->getMock();
1922
$this->loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();

0 commit comments

Comments
 (0)