File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 8
8
"psr/http-message" : " ^1.0"
9
9
},
10
10
"require-dev" : {
11
- "phpunit/phpunit" : " ~5 .0" ,
11
+ "phpunit/phpunit" : " ~4 .0" ,
12
12
"squizlabs/php_codesniffer" : " ~1.5" ,
13
13
"satooshi/php-coveralls" : " ~1.0"
14
14
},
Original file line number Diff line number Diff line change 34
34
class ClientAwareTraitTest extends TestCase
35
35
{
36
36
protected $ trait ;
37
- protected $ httpClient ;
38
37
39
38
public function setUp ()
40
39
{
41
40
$ this ->trait = $ this ->getMockForTrait ('Matricali\Http\ClientAwareTrait ' );
42
- $ this ->httpClient = $ this ->createMock ('Matricali\Http\ClientInterface ' );
43
41
}
44
42
45
43
/**
46
44
* @test
47
45
*/
48
46
public function testSetHttpClient ()
49
47
{
50
- $ this -> assertNull ( $ this -> trait -> setHttpClient ( $ this -> httpClient ) );
51
- $ this ->trait ->setHttpClient ($ this -> httpClient );
48
+ $ httpClient = new Client ( );
49
+ $ this ->assertNull ( $ this -> trait ->setHttpClient ($ httpClient) );
52
50
$ reflection = new \ReflectionProperty (get_class ($ this ->trait ), 'httpClient ' );
53
51
$ reflection ->setAccessible (true );
54
52
You can’t perform that action at this time.
0 commit comments