public function iShouldHaveRecords($number)
{
preg_match("/.*(\\[.*\\]).*/", str_replace("\n", '', $this->output), $matches);
$records = json_decode($matches[1]);
if ((int) $number != count($records)) {
throw new \Exception("Wanted {$number} records, got " . count($records) . '.');
}
return true;
}