File: 03largeints.t

package info (click to toggle)
libphp-serialization-perl 0.34-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 152 kB
  • sloc: perl: 387; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
use strict;
use warnings;
use Test::More tests => 3;

BEGIN { use_ok('PHP::Serialization') };

my $text = PHP::Serialization::serialize(744763740179);
is($text, 's:12:"744763740179";', 'Large integers serialize correctly');
$text = PHP::Serialization::serialize([1, 2]);
is($text, 'a:2:{i:0;i:1;i:1;i:2;}', 'Array serializes correctly');