Tester\Assert::noError PHP Method

noError() public static method

Checks that the function does not generate PHP error and does not throw exception.
public static noError ( $function ) : void
return void
    public static function noError($function)
    {
        self::error($function, []);
    }

Usage Example

 /**
  * Checks that the function does not generate PHP error and does not throw exception.
  * @param callable $function
  * @return void
  */
 public function noError($function)
 {
     Assert::noError($function);
 }