HEX
Server: Apache
System: Linux server.enlacediseno.com 4.18.0-553.62.1.el8_10.x86_64 #1 SMP Wed Jul 16 04:08:25 EDT 2025 x86_64
User: maor (1069)
PHP: 7.3.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/doc/perl-Test-Simple/t/Test2/modules/EventFacet/Error.t
use strict;
use warnings;

use Test2::Tools::Tiny;

use ok 'Test2::EventFacet::Error';
my $CLASS = 'Test2::EventFacet::Error';

my $one = $CLASS->new(details => 'foo', tag => 'uhg', fail => 1);

is($one->details, "foo", "Got details");
is($one->tag, 'uhg', "Got 'tag' value");
is($one->fail, 1, "Got 'fail' value");

is_deeply($one->clone, $one, "Cloning.");
isnt($one->clone, $one, "Clone is a new ref");

ok($CLASS->is_list, "is a list");
is($CLASS->facet_key, 'errors', "Got key");

done_testing;