File: 02basic.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 (12 lines) | stat: -rwxr-xr-x 253 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl

use Test::More tests => 1;

use PHP::Serialization qw(unserialize serialize);
my $data = {
	this_is_a_test => 1.23,
	second_test => [1,2,3],
	third_test => -2,
};
my $encoded = serialize($data);
is_deeply($data, unserialize($encoded));