getMessage()) !== 'ERROR: No sniffs were registered.') { // Rethrow the exception to fail the test, as this is not the exception we expected. throw $e; } } } }