Skip to content

Commit 0e0a96c

Browse files
committed
chore: revert
1 parent 274424c commit 0e0a96c

File tree

2 files changed

+19
-27
lines changed

2 files changed

+19
-27
lines changed

test-all-methods.php

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22
/**
3-
* Test script for all API methods in the PHP SDK.
4-
*
5-
* Tests all available methods in the PHP SDK with real API calls
6-
* to ensure they work correctly with the implementation.
7-
*
3+
* Test script for all API methods in the PHP SDK
4+
*
5+
* This script tests all available methods in the PHP SDK with real API calls
6+
* to ensure they work correctly with our fixed implementation.
7+
*
88
* Usage: php test-all-methods.php <api_key>
99
*/
1010

@@ -24,14 +24,6 @@
2424
"apiKey" => $apiKey,
2525
]);
2626

27-
/**
28-
* Execute a CLI test callback, reporting success or failure to stdout.
29-
*
30-
* @param string $name Human-readable test name displayed in logs
31-
* @param callable(): mixed $callback Zero-argument function returning the test result
32-
*
33-
* @return bool True on success, false on failure
34-
*/
3527
function runTest($name, $callback) {
3628
echo "\n=== Testing $name ===\n";
3729
try {

tests/LingoDotDevEngineTest.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Tests for the LingoDotDevEngine class.
3+
* Tests for the LingoDotDevEngine class
44
*
55
* @category Tests
66
* @package Lingodotdev\Sdk\Tests
@@ -20,7 +20,7 @@
2020
use ReflectionClass;
2121

2222
/**
23-
* Test cases for the LingoDotDevEngine class.
23+
* Test cases for the LingoDotDevEngine class
2424
*
2525
* @category Tests
2626
* @package Lingodotdev\Sdk\Tests
@@ -31,9 +31,9 @@
3131
class LingoDotDevEngineTest extends TestCase
3232
{
3333
/**
34-
* Creates a mock engine with predefined responses.
34+
* Creates a mock engine with predefined responses
3535
*
36-
* @param Response[] $responses Array of mock responses
36+
* @param array $responses Array of mock responses
3737
*
3838
* @return LingoDotDevEngine Mocked engine instance
3939
*/
@@ -54,7 +54,7 @@ private function _createMockEngine($responses)
5454
}
5555

5656
/**
57-
* Tests constructor with valid configuration.
57+
* Tests constructor with valid configuration
5858
*
5959
* @return void
6060
*/
@@ -65,7 +65,7 @@ public function testConstructorWithValidConfig()
6565
}
6666

6767
/**
68-
* Tests constructor with invalid configuration.
68+
* Tests constructor with invalid configuration
6969
*
7070
* @return void
7171
*/
@@ -76,7 +76,7 @@ public function testConstructorWithInvalidConfig()
7676
}
7777

7878
/**
79-
* Tests the localizeText method.
79+
* Tests the localizeText method
8080
*
8181
* @return void
8282
*/
@@ -105,7 +105,7 @@ public function testLocalizeText()
105105
}
106106

107107
/**
108-
* Tests the localizeObject method.
108+
* Tests the localizeObject method
109109
*
110110
* @return void
111111
*/
@@ -145,7 +145,7 @@ public function testLocalizeObject()
145145
}
146146

147147
/**
148-
* Tests the batchLocalizeText method.
148+
* Tests the batchLocalizeText method
149149
*
150150
* @return void
151151
*/
@@ -181,7 +181,7 @@ public function testBatchLocalizeText()
181181
}
182182

183183
/**
184-
* Tests the localizeChat method.
184+
* Tests the localizeChat method
185185
*
186186
* @return void
187187
*/
@@ -225,7 +225,7 @@ public function testLocalizeChat()
225225
}
226226

227227
/**
228-
* Tests the recognizeLocale method.
228+
* Tests the recognizeLocale method
229229
*
230230
* @return void
231231
*/
@@ -248,7 +248,7 @@ public function testRecognizeLocale()
248248
}
249249

250250
/**
251-
* Tests error handling in the SDK.
251+
* Tests error handling in the SDK
252252
*
253253
* @return void
254254
*/
@@ -276,7 +276,7 @@ public function testErrorHandling()
276276
}
277277

278278
/**
279-
* Tests the reference parameter handling.
279+
* Tests the reference parameter handling
280280
*
281281
* @return void
282282
*/
@@ -323,7 +323,7 @@ public function testReferenceParameterHandling()
323323
}
324324

325325
/**
326-
* Tests the progress callback functionality.
326+
* Tests the progress callback functionality
327327
*
328328
* @return void
329329
*/

0 commit comments

Comments
 (0)