public function doesNotThrow()
    {
        try {
            $this->data[0]();
        } catch (Exception $exception) {
            if ($this->isKindOfClass($exception, $this->data[1])) {
                $exceptionClass = get_class($exception);
                throw new DidNotMatchException(
                    "Expected {$this->data[1]} not to be thrown, " .
                    "but $exceptionClass was thrown."
                );
            }
        }
    }
public function doesNotThrow()
    {
        try {
            $this->data[0]();
        } catch (Exception $exception) {
            if ($this->isKindOfClass($exception, $this->data[1])) {
                $exceptionClass = get_class($exception);
                throw new DidNotMatchException(
                    "Expected {$this->data[1]} not to be thrown, " .
                    "but $exceptionClass was thrown."
                );
            }
        }
    }
public function doesNotThrow ( ) { try { $ this -> data [ 0 ] ( ) ; } catch ( Exception $ exception ) { if ( $ this -> isKindOfClass ( $ exception , $ this -> data [ 1 ] ) ) { $ exceptionClass = get_class ( $ exception ) ; throw new DidNotMatchException ( "Expected {$this->data[1]} not to be thrown, " . "but $exceptionClass was thrown." ) ; } } }
Assert that a specific exception is not thrown.

@syntax closure ?:callable does not throw ?:class
@throws DidNotMatchException
Assert that a specific exception is not thrown .