Uname:
Linux server.thebazaar99.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64
Software:
Apache
PHP version:
8.3.32 [ PHP INFO ] PHP os:
Linux
Server Ip:
163.227.92.254
Your Ip:
216.73.217.24
User:
gutlooks (1003) | Group:
gutlooks (1005)
Safe Mode:
OFF
Disable Function:
exec,passthru,shell_exec,system
use strict;
use warnings;
use lib 't/lib';
use Test::Tester tests => 6;
use SmallTest;
use MyTest;
{
my ($prem, @results) = run_tests(
sub { MyTest::ok(1, "run pass")}
);
is_eq($results[0]->{name}, "run pass");
is_num($results[0]->{ok}, 1);
}
{
my ($prem, @results) = run_tests(
sub { MyTest::ok(0, "run fail")}
);
is_eq($results[0]->{name}, "run fail");
is_num($results[0]->{ok}, 0);
}
is_eq(ref(SmallTest::getTest()), "Test::Tester::Delegate");
is_eq(
SmallTest::getTest()->can('ok'),
Test::Builder->can('ok'),
"Delegate->can() returns the sub from the inner object",
);