File: 03_destructor.t

package info (click to toggle)
libhtml-treebuilder-libxml-perl 0.28-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 264 kB
  • sloc: perl: 533; makefile: 2; sh: 1
file content (15 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;
use Test::More;
use HTML::TreeBuilder::LibXML;

plan skip_all => 'this test requires HTML::TreeBuilder::XPath' unless eval 'use HTML::TreeBuilder::XPath;1;';
plan tests => 2;

{
    my $destructor = HTML::TreeBuilder::LibXML->replace_original;
    isa_ok(HTML::TreeBuilder::XPath->new, 'HTML::TreeBuilder::LibXML');
}

isa_ok(HTML::TreeBuilder::XPath->new, 'HTML::TreeBuilder::XPath');