* This file is part of the ckWebServicePlugin
 *
 * @package   ckWebServicePlugin
 * @author    Christian Kerl <*****@*****.**>
 * @copyright Copyright (c) 2008, Christian Kerl
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 * @version   SVN: $Id: typeMappingTest.php 20950 2009-08-08 20:45:00Z chrisk $
 */
$app = 'frontend';
$env = 'soapTestServiceApi';
$debug = true;
include_once dirname(__FILE__) . '/../bootstrap/functional.php';
$_options = array('classmap' => array('TestData' => 'TestData', 'StringArray' => 'ckGenericArray', 'TestDataArray' => 'ckGenericArray', 'StringArrayArray' => 'ckGenericArray'));
$c = new ckTestSoapClient($_options);
// test executeNoArg
$c->test_noArg()->isFaultEmpty()->isType('', 'boolean')->is('', true);
// test executeSimple
$c->test_simple(true, 5, 'a string', 1.5)->isFaultEmpty()->isType('', 'boolean')->is('', true);
// test executeComplex
$object = new TestData();
$object->content = 'a string';
$c->test_complex($object)->isFaultEmpty()->isType('', 'TestData')->is('content', $object->content);
// test arraySimple
$array = array(1, 2, 3, 4);
$c->test_arraySimple($array)->isFaultEmpty()->isType('', 'ckGenericArray')->isCount('', 2)->is('0', 'a')->is('1', 'b');
// test arrayComplex
$object = new TestData();
$object->content = 'a string';
$array = array($object);
$c->test_arrayComplex($array)->isFaultEmpty()->isType('', 'ckGenericArray')->isCount('', 1)->isType('0', 'TestData')->is('0.content', $object->content);
// test arrayArray