Skip to content

Commit 564a064

Browse files
committed
Fix syntax errors occurring on PHP 5.4, 5.5
Message: "Parse error: syntax error, unexpected 'public' (T_PUBLIC)"
1 parent e5f1dd8 commit 564a064

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/PHPCurlClass/PHPCurlClassTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testCaseInsensitiveArrayGet()
4444

4545
public function testCaseInsensitiveArraySet()
4646
{
47-
public function assertions($array, $count = 1)
47+
function assertions($array, $count = 1)
4848
{
4949
PHPUnit_Framework_Assert::assertCount($count, $array);
5050
PHPUnit_Framework_Assert::assertTrue($array['foo'] === 'bar');
@@ -142,15 +142,15 @@ public function testPostAssociativeArrayData()
142142
$test = new Test();
143143
$this->assertTrue(
144144
$test->server('post_multidimensional', 'POST', array(
145-
'username' => 'myusername',
146-
'password' => 'mypassword',
147-
'more_data' => array(
148-
'param1' => 'something',
149-
'param2' => 'other thing',
150-
'param3' => 123,
151-
'param4' => 3.14,
152-
),
153-
)) ===
145+
'username' => 'myusername',
146+
'password' => 'mypassword',
147+
'more_data' => array(
148+
'param1' => 'something',
149+
'param2' => 'other thing',
150+
'param3' => 123,
151+
'param4' => 3.14,
152+
),
153+
)) ===
154154
'username=myusername' .
155155
'&password=mypassword' .
156156
'&more_data%5B' .
@@ -483,7 +483,7 @@ public function testPostContentTypes()
483483

484484
public function testJSONResponse()
485485
{
486-
public function assertion($key, $value)
486+
function assertion($key, $value)
487487
{
488488
$test = new Test();
489489
$test->server('json_response', 'POST', array(
@@ -512,7 +512,7 @@ public function assertion($key, $value)
512512

513513
public function testXMLResponse()
514514
{
515-
public function xmlAssertion($key, $value)
515+
function xmlAssertion($key, $value)
516516
{
517517
$test = new Test();
518518
$test->server('xml_response', 'POST', array(

0 commit comments

Comments
 (0)