public function checkResponded()
{
$cardinality = $this->resetCardinality();
$calls = $this->spy->allCalls();
$matchingEvents = array();
$totalCount = count($calls);
$matchCount = 0;
foreach ($calls as $call) {
if ($responseEvent = $call->responseEvent()) {
$matchingEvents[] = $responseEvent;
++$matchCount;
}
}
if ($cardinality->matches($matchCount, $totalCount)) {
return $this->assertionRecorder->createSuccess($matchingEvents);
}
}