@@ -28,6 +28,9 @@ class OutputTableTest extends AbstractTestCase
2828{
2929 use TestCaseTrait;
3030
31+ /**
32+ * @var array
33+ */
3134 public static array $ apiRaw = [
3235 'ET_API_ANGEBOT_ADRESSE ' => [
3336 'name ' => 'ET_API_ANGEBOT_ADRESSE ' ,
@@ -206,9 +209,9 @@ class OutputTableTest extends AbstractTestCase
206209 ]
207210 ];
208211 /**
209- * @var string
212+ * @var array
210213 */
211- public static $ apiJson = [
214+ public static array $ apiJson = [
212215 0 => [
213216 'type ' => 'table ' ,
214217 'name ' => 'ET_API_ANGEBOT_ADRESSE ' ,
@@ -343,7 +346,7 @@ class OutputTableTest extends AbstractTestCase
343346 /**
344347 * Mock the RFC_OUTPUT_TABLE function.
345348 */
346- public function mockRfcOutputTable ()
349+ public function mockRfcOutputTable (): void
347350 {
348351 //Use an object for connection flag and function name.
349352 $ flags = new stdClass ();
@@ -354,9 +357,9 @@ public function mockRfcOutputTable()
354357 $ flags ->response = self ::$ responseRaw ;
355358 $ expectedConfig = static ::getSampleSapConfig ();
356359 static ::mock ('\SAPNWRFC\Connection::__construct ' , static function (array $ config , array $ options ) use ($ flags , $ expectedConfig ) {
360+ unset($ options );
357361 if (
358- !is_array ($ config )
359- || !array_key_exists ('ashost ' , $ config )
362+ !array_key_exists ('ashost ' , $ config )
360363 || !array_key_exists ('sysnr ' , $ config )
361364 || !array_key_exists ('client ' , $ config )
362365 || !array_key_exists ('user ' , $ config )
@@ -373,7 +376,7 @@ public function mockRfcOutputTable()
373376 $ flags ->conn = true ;
374377 });
375378 static ::mock ('\SAPNWRFC\Connection::close ' , static function () use ($ flags ) {
376- //calling \SAPNWRFC\Connection::close twice has to fail
379+ //calling \SAPNWRFC\Connection::close() twice has to fail
377380 if ($ flags ->conn !== true ) {
378381 throw new ConnectionException ('mock connection already closed! ' );
379382 }
0 commit comments