Tester\Assert::noError PHP 메소드

noError() 공개 정적인 메소드

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

Usage Example

예제 #1
0
 /**
  * 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);
 }