You are here

function simpletest_xmlrpc_arrayOfStructsTest in SimpleTest 6

Same name and namespace in other branches
  1. 5 simpletest_xmlrpc.module \simpletest_xmlrpc_arrayOfStructsTest()
1 call to simpletest_xmlrpc_arrayOfStructsTest()
XMLRPCValidator1Test::test_run_all_tests in tests/xmlrpc_validator1.test
1 string reference to 'simpletest_xmlrpc_arrayOfStructsTest'
simpletest_xmlrpc_xmlrpc in ./simpletest_xmlrpc.module
Implementation of hook_xmlrpc()

File

./simpletest_xmlrpc.module, line 20

Code

function simpletest_xmlrpc_arrayOfStructsTest($array) {
  $sum = 0;
  foreach ($array as $struct) {
    if (isset($struct['curly'])) {
      $sum += $struct['curly'];
    }
  }
  return $sum;
}