Skip to content

Commit 6204ece

Browse files
author
Luka Zitnik
committed
fix tests under php 7
1 parent 7a7b475 commit 6204ece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/rest/RestClientTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function testSendsRequest ($data) {
130130
$client = new RestClient(
131131
self::EXAMPLE_CUSTOMER_ID, self::EXAMPLE_SECRET_KEY, self::EXAMPLE_API_HOST, 10, null, $mock
132132
);
133-
$client->$data["method_name"](
133+
$client->{$data["method_name"]}(
134134
self::EXAMPLE_RESOURCE, self::EXAMPLE_FIELDS, self::EXAMPLE_DATE, self::EXAMPLE_NONCE
135135
);
136136

@@ -152,7 +152,7 @@ function testReturnsResponse ($data) {
152152
$client = new RestClient(
153153
self::EXAMPLE_CUSTOMER_ID, self::EXAMPLE_SECRET_KEY, self::EXAMPLE_API_HOST, 10, null, $mock
154154
);
155-
$response = $client->$data["method_name"](
155+
$response = $client->{$data["method_name"]}(
156156
self::EXAMPLE_RESOURCE, self::EXAMPLE_FIELDS, self::EXAMPLE_DATE, self::EXAMPLE_NONCE
157157
);
158158

0 commit comments

Comments
 (0)