HEX
Server: Apache
System: Linux server.forfound.com 5.14.0-611.54.6.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 04:23:18 EDT 2026 x86_64
User: planetnewspro23 (1019)
PHP: 8.5.7
Disabled: NONE
Upload Files
File: /home/.cpan/build/Mock-Config-0.03-0/t/0-basic.t
#!perl -T
use 5.006;
use strict;
use warnings;
use Test::More;

plan tests => 3;

use Config;
ok($Config{startperl}, 'initial state');

use Mock::Config;
# no lexical state yet, just dynamic
Mock::Config->import(startperl => '');
diag( "Testing Mock::Config, Perl $], ".
      (exists &Config::KEYS ? 'XS' : '')."Config $Config::VERSION, $^X" );

is($Config{startperl}, '', 'mocked to empty');

Mock::Config->unimport;
ok($Config{startperl}, 'reset');