1st attempt at fixing tests
[plcapi.git] / tests / 4LocalhostMultiTest.php
index 4462349..0be02ef 100644 (file)
@@ -89,7 +89,8 @@ class LocalhostMultiTest extends LocalhostTest
         $this->client->keepalive = true;
 
         // to successfully test keepalive, we have to reuse the same client for all tests, we can not recreate one on setup/teardown...
-        foreach ($this->getSingleHttpTestMethods() as $method) {
+        foreach ($this->getSingleHttpTestMethods() as $methods) {
+            $method = $methods[0];
             $this->$method;
         }
     }