Skip to content

Commit ef881ae

Browse files
author
Pavel Batanov
committed
Fix tests (self:: inside prophecy mock)
1 parent 182f4b7 commit ef881ae

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
},
1919
"require-dev": {
2020
"phpunit/phpunit": "~4.5|~5.1",
21+
"phpunit/php-code-coverage": "~2.1|~3.0",
2122
"psr/cache": "~1.0"
2223
},
2324
"autoload": {

src/ScayTrase/Api/JsonRpc/Tests/JsonRpcClientTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ function ($args) use ($self, $params, $isArray) {
6464
$content = $request->getBody()->getContents();
6565
$data = json_decode($content);
6666
if ($isArray) {
67-
self::assertTrue(is_array($data));
68-
self::assertNotEmpty($data);
67+
$self::assertTrue(is_array($data));
68+
$self::assertNotEmpty($data);
6969
$data = array_shift($data);
7070
}
7171
$self::assertEquals(JSON_ERROR_NONE, json_last_error());
@@ -86,8 +86,8 @@ function () {
8686
);
8787
}
8888
);
89-
$client = new JsonRpcClient($guzzle->reveal(), new Uri('http://localhost/'));
90-
return $client;
89+
90+
return new JsonRpcClient($guzzle->reveal(), new Uri('http://localhost/'));
9191
}
9292

9393
/**

0 commit comments

Comments
 (0)