File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 88 "psr/http-message" : " ^1.0"
99 },
1010 "require-dev" : {
11- "phpunit/phpunit" : " ~5 .0" ,
11+ "phpunit/phpunit" : " ~4 .0" ,
1212 "squizlabs/php_codesniffer" : " ~1.5" ,
1313 "satooshi/php-coveralls" : " ~1.0"
1414 },
Original file line number Diff line number Diff line change 3434class ClientAwareTraitTest extends TestCase
3535{
3636 protected $ trait ;
37- protected $ httpClient ;
3837
3938 public function setUp ()
4039 {
4140 $ this ->trait = $ this ->getMockForTrait ('Matricali\Http\ClientAwareTrait ' );
42- $ this ->httpClient = $ this ->createMock ('Matricali\Http\ClientInterface ' );
4341 }
4442
4543 /**
4644 * @test
4745 */
4846 public function testSetHttpClient ()
4947 {
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) );
5250 $ reflection = new \ReflectionProperty (get_class ($ this ->trait ), 'httpClient ' );
5351 $ reflection ->setAccessible (true );
5452
You can’t perform that action at this time.
0 commit comments