File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ provide alternate implementations.
23
23
* [ Fallback get] ( #fallback-get )
24
24
* [ Fallback-get-and-set] ( #fallback-get-and-set )
25
25
* [ Install] ( #install )
26
+ * [ Tests] ( #tests )
26
27
* [ License] ( #license )
27
28
28
29
## Usage
@@ -150,6 +151,21 @@ $ composer require "react/cache:~0.4.0|~0.3.0"
150
151
151
152
More details and upgrade guides can be found in the [ CHANGELOG] ( CHANGELOG.md ) .
152
153
154
+ ## Tests
155
+
156
+ To run the test suite, you first need to clone this repo and then install all
157
+ dependencies [ through Composer] ( https://getcomposer.org ) :
158
+
159
+ ``` bash
160
+ $ composer install
161
+ ```
162
+
163
+ To run the test suite, go to the project root and run:
164
+
165
+ ``` bash
166
+ $ php vendor/bin/phpunit
167
+ ```
168
+
153
169
## License
154
170
155
171
MIT, see [ LICENSE file] ( LICENSE ) .
Original file line number Diff line number Diff line change 14
14
"psr-4" : { "React\\ Tests\\ Cache\\ " : " tests/" }
15
15
},
16
16
"require-dev" : {
17
- "phpunit/phpunit" : " ~4.8 "
17
+ "phpunit/phpunit" : " ^6.4 || ^5.7 || ^4.8.35 "
18
18
}
19
19
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace React \Tests \Cache ;
4
4
5
- class TestCase extends \PHPUnit_Framework_TestCase
5
+ use PHPUnit \Framework \TestCase as BaseTestCase ;
6
+
7
+ class TestCase extends BaseTestCase
6
8
{
7
9
protected function expectCallableExactly ($ amount )
8
10
{
@@ -36,6 +38,6 @@ protected function expectCallableNever()
36
38
37
39
protected function createCallableMock ()
38
40
{
39
- return $ this ->getMock ('React\Tests\Cache\CallableStub ' );
41
+ return $ this ->getMockBuilder ('React\Tests\Cache\CallableStub ' )-> getMock ( );
40
42
}
41
43
}
You can’t perform that action at this time.
0 commit comments