File: 07croak.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: -rw-r--r-- 207 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env perl
use strict;
use warnings;

use PHP::Serialization;
use Test::More tests => 1;

my $s = 's:3;"ABC";';
eval q{
	my $u = PHP::Serialization::unserialize($s);
};
like($@, qr/ERROR/, 'dies');