/**
  * Generate test for the data Lob type different size.
  */
 public function crc32WithStoredRoutine($size)
 {
     $data = '';
     $chars = 'abdefhiknrstyzABDEFGHKNQRSTYZ1234567890';
     for ($i = 0; $i <= 1024; $i++) {
         $data .= substr($chars, rand(0, strlen($chars)), 1);
     }
     $data = substr(str_repeat($data, $size / 1024 + 1024), 0, $size);
     $crc32_php = sprintf("%u", crc32($data));
     $crc32_db = DataLayer::testMaxAllowedPacket($data);
     $this->assertEquals($crc32_php, $crc32_db);
 }