File tree Expand file tree Collapse file tree 7 files changed +28
-35
lines changed Expand file tree Collapse file tree 7 files changed +28
-35
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
- php :
4
- # - 5.3 # requires old distro, see below
5
- - 5.4
6
- - 5.5
7
- - 5.6
8
- - 7.0
9
- - 7.1
10
- - 7.2
11
- - 7.3
12
- - hhvm # ignore errors, see below
13
-
14
3
# lock distro so new future defaults will not break the build
15
4
dist : trusty
16
5
17
- matrix :
6
+ jobs :
18
7
include :
19
8
- php : 5.3
20
9
dist : precise
10
+ - php : 5.4
11
+ - php : 5.5
12
+ - php : 5.6
13
+ - php : 7.0
14
+ - php : 7.1
15
+ - php : 7.2
16
+ - php : 7.3
17
+ - php : 7.4
18
+ - php : hhvm-3.18
21
19
allow_failures :
22
- - php : hhvm
23
-
24
- sudo : false
20
+ - php : hhvm-3.18
25
21
26
22
install :
27
23
- composer install --no-interaction
Original file line number Diff line number Diff line change 26
26
"react/event-loop" : " ^1.0 || ^0.5 || ^0.4 || ^0.3" ,
27
27
"react/promise-timer" : " ^1.0" ,
28
28
"clue/block-react" : " ^1.0" ,
29
- "phpunit/phpunit" : " ^7.0 || ^6.4 || ^5.7 || ^4.8.35"
29
+ "phpunit/phpunit" : " ^9.0 || ^5.7 || ^4.8.35"
30
30
}
31
31
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
3
- <phpunit bootstrap =" vendor/autoload.php"
4
- colors =" true"
5
- convertErrorsToExceptions =" true"
6
- convertNoticesToExceptions =" true"
7
- convertWarningsToExceptions =" true"
8
- >
3
+ <phpunit bootstrap =" vendor/autoload.php" colors =" true" >
9
4
<testsuites >
10
5
<testsuite name =" PromiseStream Test Suite" >
11
6
<directory >./tests/</directory >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -53,7 +53,13 @@ protected function expectCallableNever()
53
53
*/
54
54
protected function createCallableMock ()
55
55
{
56
- return $ this ->getMockBuilder ('React\Tests\Promise\Stream\CallableStub ' )->getMock ();
56
+ if (method_exists ('PHPUnit\Framework\MockObject\MockBuilder ' , 'addMethods ' )) {
57
+ // PHPUnit 9+
58
+ return $ this ->getMockBuilder ('stdClass ' )->addMethods (array ('__invoke ' ))->getMock ();
59
+ } else {
60
+ // legacy PHPUnit 4 - PHPUnit 9
61
+ return $ this ->getMockBuilder ('stdClass ' )->setMethods (array ('__invoke ' ))->getMock ();
62
+ }
57
63
}
58
64
59
65
protected function expectPromiseResolve ($ promise )
Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ class UnwrapReadableTest extends TestCase
13
13
{
14
14
private $ loop ;
15
15
16
- public function setUp ()
16
+ /**
17
+ * @before
18
+ */
19
+ public function setUpLoop ()
17
20
{
18
21
$ this ->loop = Factory::create ();
19
22
}
Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ class UnwrapWritableTest extends TestCase
14
14
{
15
15
private $ loop ;
16
16
17
- public function setUp ()
17
+ /**
18
+ * @before
19
+ */
20
+ public function setUpLoop ()
18
21
{
19
22
$ this ->loop = Factory::create ();
20
23
}
You can’t perform that action at this time.
0 commit comments