File tree Expand file tree Collapse file tree 7 files changed +45
-81
lines changed Expand file tree Collapse file tree 7 files changed +45
-81
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ jobs :
8
+ PHPUnit :
9
+ name : PHPUnit (PHP ${{ matrix.php }})
10
+ runs-on : ubuntu-20.04
11
+ strategy :
12
+ matrix :
13
+ php :
14
+ - 7.4
15
+ - 7.3
16
+ - 7.2
17
+ - 7.1
18
+ - 5.6
19
+ - 5.5
20
+ - 5.4
21
+ - 5.3
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+ - uses : shivammathur/setup-php@v2
25
+ with :
26
+ php-version : ${{ matrix.php }}
27
+ coverage : xdebug
28
+ - run : composer install
29
+ - run : vendor/bin/phpunit --coverage-text
Original file line number Diff line number Diff line change 1
- vendor
1
+ /composer.lock
2
+ /vendor /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Async utilities for React.
6
6
7
7
It is heavily influenced by [ async.js] ( https://github.com/caolan/async ) .
8
8
9
- [ ![ Build Status ] ( https://secure.travis-ci.org /reactphp/async.png?branch=master )] ( http ://travis-ci.org /reactphp/async)
9
+ [ ![ CI status ] ( https://github.com /reactphp/async/workflows/CI/badge.svg )] ( https ://github.com /reactphp/async/actions )
10
10
11
11
## About
12
12
@@ -118,9 +118,18 @@ $loop->run();
118
118
119
119
## Tests
120
120
121
- To run the test suite, you need PHPUnit.
121
+ To run the test suite, you first need to clone this repo and then install all
122
+ dependencies [ through Composer] ( https://getcomposer.org/ ) :
122
123
123
- $ phpunit
124
+ ``` bash
125
+ $ composer install
126
+ ```
127
+
128
+ To run the test suite, go to the project root and run:
129
+
130
+ ``` bash
131
+ $ php vendor/bin/phpunit
132
+ ```
124
133
125
134
## License
126
135
Original file line number Diff line number Diff line change 7
7
"php" : " >=5.3.2"
8
8
},
9
9
"require-dev" : {
10
+ "phpunit/phpunit" : " ^5.7 || ^4.8.35" ,
10
11
"react/event-loop" : " 0.2.*"
11
12
},
12
13
"suggest" : {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class TestCase extends \PHPUnit_Framework_TestCase
6
6
{
7
7
protected function createCallableMock ($ expects , $ with = null )
8
8
{
9
- $ callable = $ this ->getMock ('React\Tests\Async\CallableStub ' );
9
+ $ callable = $ this ->getMockBuilder ('React\Tests\Async\CallableStub ' )-> getMock ( );
10
10
11
11
$ method = $ callable
12
12
->expects ($ expects )
You can’t perform that action at this time.
0 commit comments