2017-07-09 08:06:36 -04:00
|
|
|
# frozen_string_literal: true
|
2016-11-20 10:09:20 -05:00
|
|
|
require_relative "xml_mini_engine_test"
|
2009-10-02 10:34:28 -04:00
|
|
|
|
2016-11-20 10:09:20 -05:00
|
|
|
XMLMiniEngineTest.run_with_gem("libxml") do
|
|
|
|
class LibxmlEngineTest < XMLMiniEngineTest
|
2016-11-19 10:59:24 -05:00
|
|
|
def setup
|
|
|
|
super
|
2016-08-06 13:55:02 -04:00
|
|
|
LibXML::XML::Error.set_handler(&lambda { |error| }) #silence libxml, exceptions will do
|
|
|
|
end
|
2009-10-02 10:34:28 -04:00
|
|
|
|
2016-11-19 10:59:24 -05:00
|
|
|
private
|
2016-11-20 09:06:17 -05:00
|
|
|
def engine
|
|
|
|
"LibXML"
|
|
|
|
end
|
2009-10-02 10:34:28 -04:00
|
|
|
|
2016-11-20 09:06:17 -05:00
|
|
|
def expansion_attack_error
|
|
|
|
LibXML::XML::Error
|
|
|
|
end
|
2016-08-06 13:55:02 -04:00
|
|
|
end
|
2009-10-02 10:34:28 -04:00
|
|
|
end
|