function checkFixtureModel(ckTestSoapClient $c, $withAuthor)
{
    $c->isFaultEmpty()->isCount('', 2)->isType('', 'ckGenericArray')->isType('0', 'myArticle')->is('0.id', 1)->is('0.title', 'Howto Build Webservices in Symfony')->is('0.content', 'Some Content.')->isType('0.ArticleAuthors', 'ckGenericArray')->isType('0.ArticleComments', 'ckGenericArray')->isCount('0.ArticleComments', 2)->isType('0.ArticleComments.0', 'myArticleComment')->is('0.ArticleComments.0.content', 'Physics is great!')->is('0.ArticleComments.0.author', 'Isaac Newton')->isType('0.ArticleComments.1', 'myArticleComment')->is('0.ArticleComments.1.content', 'I like cars!')->is('0.ArticleComments.1.author', 'Henry Ford')->isType('1', 'myArticle')->is('1.id', 2)->is('1.title', 'Howto Write Tests In Symfony')->is('1.content', 'Some Content.')->isType('1.ArticleAuthors', 'ckGenericArray')->isType('1.ArticleComments', 'ckGenericArray')->isCount('1.ArticleComments', 1)->isType('1.ArticleComments.0', 'myArticleComment')->is('1.ArticleComments.0.content', 'Alles ist relativ!')->is('1.ArticleComments.0.author', 'Albert Einstein');
    $result = $c->getResult();
    $t = $c->test();
    $t->cmp_ok($result[0]->ArticleComments[0]->Article, '===', $result[0]->ArticleComments[1]->Article);
    $t->cmp_ok($result[0], '===', $result[0]->ArticleComments[0]->Article);
    if ($withAuthor) {
        $c->isCount('0.ArticleAuthors', 1)->isType('0.ArticleAuthors.0', 'myArticleAuthor')->isType('0.ArticleAuthors.0.Author', 'myAuthor')->is('0.ArticleAuthors.0.Author.id', 1)->is('0.ArticleAuthors.0.Author.name', 'Christian Kerl')->isCount('0.ArticleAuthors.0.Author.ArticleAuthors', 2)->isCount('1.ArticleAuthors', 1)->isType('1.ArticleAuthors.0', 'myArticleAuthor')->isType('1.ArticleAuthors.0.Author', 'myAuthor')->is('1.ArticleAuthors.0.Author.id', 1)->is('1.ArticleAuthors.0.Author.name', 'Christian Kerl')->isCount('1.ArticleAuthors.0.Author.ArticleAuthors', 2);
        $t->ok($result[0]->ArticleAuthors[0]->Author === $result[1]->ArticleAuthors[0]->Author);
        $t->ok($result[0] === $result[0]->ArticleAuthors[0]->Article);
        $t->ok($result[1] === $result[1]->ArticleAuthors[0]->Article);
    }
}