/**
  * Asserts that the number of rows in the database that match $where
  * is equal to $expected.
  *
  * @param int    $expected
  * @param string $table
  * @param array  $where
  *
  * @return bool
  * @throws \CodeIgniter\DatabaseException
  */
 public function seeNumRecords(int $expected, string $table, array $where)
 {
     $count = $this->db->table($table)->where($where)->countAllResults();
     $this->assertEquals($expected, $count, 'Wrong number of matching rows in database.');
 }