Skip to content

Commit e513cf4

Browse files
committed
+ Rollback composer.json.-
+ Updating TDD.-
1 parent 01e7442 commit e513cf4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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
},

tests/ClientAwareTraitTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,19 @@
3434
class 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

0 commit comments

Comments
 (0)