CPAN

 view release on metacpan or  search on metacpan

t/97-process_options.t  view on Meta::CPAN

use Test::More tests => 4;

BEGIN {  *CORE::GLOBAL::exit = sub { 23 } };

BEGIN {
	local $^W = 0;

	our $class  = 'App::Cpan';
	our $method = '_process_options';

	use_ok( $class );
	can_ok( $class, $method );

	require "./t/97-lib_cpan1/CPAN.pm";
	}

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Test with no options
{
local @ARGV = ();

is( $class->$method(), 23, "No arguments calls shell branch" );
pass( "Got past the exit" );
}

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.538 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )