|
|
@@ -28,12 +28,12 @@ is($code,0,"Help works OK");
|
|
|
like($out,qr/bogus bogus/i,"Displays POD OK");
|
|
|
|
|
|
#check the binary output mode
|
|
|
-is(exception {($apiurl,$password,$user) = TestRail::Utils::parseConfig(dirname(__FILE__),1)}, undef, "No exceptions thrown by parseConfig in array mode");
|
|
|
+is(exception {capture_merged { ($apiurl,$password,$user) = TestRail::Utils::parseConfig(dirname(__FILE__),1) }}, undef, "No exceptions thrown by parseConfig in array mode");
|
|
|
is($apiurl,'http://hokum.bogus',"APIURL parse OK");
|
|
|
is($user,'zippy',"USER parse OK");
|
|
|
is($password, 'happy', 'PASSWORD parse OK');
|
|
|
|
|
|
-is(exception {$out = TestRail::Utils::parseConfig(dirname(__FILE__))}, undef, "No exceptions thrown by parseConfig default mode");
|
|
|
+is(exception {capture_merged { $out = TestRail::Utils::parseConfig(dirname(__FILE__))}}, undef, "No exceptions thrown by parseConfig default mode");
|
|
|
is($out->{apiurl},'http://hokum.bogus',"APIURL parse OK");
|
|
|
is($out->{user},'zippy',"USER parse OK");
|
|
|
is($out->{password}, 'happy', 'PASSWORD parse OK');
|