It seems like seeResponseContainsJson does not handle empty arrays. If I further implement what I assert the response to be until there are no empty arrays:
$I->seeResponseContainsJson(array(
'_links' => array(
'self' => array(
'href' => $baseUrl . 'contact/1/website'
),
'describedBy' => array(
'href' => $baseUrl . 'documentation/collection'
),
),
'_embedded' => array(
'items' => array(
array(
'id' => 1,
),
),
),
));
My tests are now passing. This is sufficient for now, but perhaps handling empty arrays is a future feature request?