File tree 3 files changed +12
-8
lines changed
3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 8
8
9
9
env :
10
10
- PHPUNIT_VERSION=dev-master
11
+ - PHPUNIT_VERSION=~5.0.0
11
12
- PHPUNIT_VERSION=~4.8.0
12
13
- PHPUNIT_VERSION=~4.7.0
13
14
- PHPUNIT_VERSION=~4.6.0
@@ -29,6 +30,13 @@ matrix:
29
30
allow_failures :
30
31
- php : hhvm
31
32
- env : PHPUNIT_VERSION=dev-master
33
+ exclude :
34
+ - env : PHPUNIT_VERSION=~5.0.0
35
+ php : 5.5
36
+ - env : PHPUNIT_VERSION=dev-master
37
+ php : 5.5
38
+ - env : PHPUNIT_VERSION=dev-master
39
+ php : 5.6
32
40
33
41
install :
34
42
- composer require phpunit/phpunit:${PHPUNIT_VERSION}
Original file line number Diff line number Diff line change @@ -7,19 +7,15 @@ This package integrates the function mock library
7
7
8
8
Use [ Composer] ( https://getcomposer.org/ ) :
9
9
10
- ``` json
11
- {
12
- "require-dev" : {
13
- "php-mock/php-mock-phpunit" : " ^0.3"
14
- }
15
- }
10
+ ``` sh
11
+ composer require php-mock/php-mock-phpunit
16
12
```
17
13
18
14
# Usage
19
15
20
16
PHP-Mock integrates with the trait
21
17
[ ` PHPMock ` ] ( http://php-mock.github.io/php-mock-phpunit/api/class-phpmock.phpunit.PHPMock.html )
22
- into your PHPUnit-4 or PHPUnit-5 test case. This trait extends the framework
18
+ into your PHPUnit test case. This trait extends the framework
23
19
by the method
24
20
[ ` getFunctionMock() ` ] ( http://php-mock.github.io/php-mock-phpunit/api/class-phpmock.phpunit.PHPMock.html#_getFunctionMock ) .
25
21
With this method you can build a mock in the way you are used to build a
Original file line number Diff line number Diff line change 19
19
"require" : {
20
20
"php" : " >=5.5" ,
21
21
"phpunit/phpunit" : " ^4.0.0 || ^5.0.0" ,
22
- "php-mock/php-mock-integration" : " ^0.4 "
22
+ "php-mock/php-mock-integration" : " ^1 "
23
23
},
24
24
"require-dev" : {
25
25
"mockery/mockery" : " ^0.9"
You can’t perform that action at this time.
0 commit comments