ePages 6.17.43 - DE_EPAGES/Test/API/TestTools.pm

Package DE_EPAGES::Test::API::TestTools

colection of test tools which are useful for unit tests

@EXPORT_OK
TestExistsMethod

Functions

TestExistsMethod

TestExistsMethod

Throws an Error if a Package don't contain a specific method

Syntax
TestExistsMethod( 'A::Package::Name', 'aMethodName' );
TestExistsMethod( $ObjectOfAPackage, 'otherMethodName' );
Input
$PathOrObject (String or ref_object)
an Object referenz or a Path to a Package
$MethodName (String)
Name of a Method