PHPUnit_Framework_Assert::markTestSkipped PHP Method

markTestSkipped() public static method

Mark the test as skipped.
public static markTestSkipped ( string $message = '' )
$message string
    public static function markTestSkipped($message = '')
    {
        throw new PHPUnit_Framework_SkippedTestError($message);
    }

Usage Example

Example #1
0
 /**
  * @return void
  * @param string $host
  * @param int    $port
  * @param string $message
  *
  * @throws \PHPUnit_Framework_AssertionFailedError
  */
 public function check($host, $port, $message)
 {
     try {
         $errNo = $errStr = null;
         if (!@fsockopen($host, $port, $errNo, $errStr, 1)) {
             throw new \PHPUnit_Framework_AssertionFailedError();
         }
     } catch (\PHPUnit_Framework_AssertionFailedError $e) {
         \PHPUnit_Framework_Assert::markTestSkipped(sprintf($message, $host, $port));
     }
 }
All Usage Examples Of PHPUnit_Framework_Assert::markTestSkipped
PHPUnit_Framework_Assert