src/HelperTrait.php
public static function assertMethodExists(string $method, string $class, string $msg = '')
    {
        if ($msg === '') {
            $msg = "Expected the class '$class' to have method '$method'.";
        }

        static::assertTrue(method_exists($class, $method), $msg);
    }
public static function assertMethodExists(string $method, string $class, string $msg = '')
    {
        if ($msg === '') {
            $msg = "Expected the class '$class' to have method '$method'.";
        }

        static::assertTrue(method_exists($class, $method), $msg);
    }
public static function assertMethodExists ( string $ method , string $ class , string $ msg = '' ) { if ( $ msg === '' ) { $ msg = "Expected the class '$class' to have method '$method'." ; } static :: assertTrue ( method_exists ( $ class , $ method ) , $ msg ) ; }
Assert that the specified method exists on the class.

@param string $method
@param string $class
@param string $msg

@return void
Assert that the specified method exists on the class .