~ubuntu-branches/ubuntu/lucid/libxml-libxml-perl/lucid

« back to all changes in this revision

Viewing changes to t/21catalog.t

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann
  • Date: 2009-05-31 14:36:13 UTC
  • mfrom: (4.1.7 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090531143613-xxpnwmrz62kwtejq
Tags: 1.69.ds-2
* Remove Florian Ragwitz from Uploaders (closes: #523275).
* Set Standards-Version to 3.8.1 (no changes).
* Remove duplicate fields from debian/control.
* Minimize debian/rules, bump quilt and debhelper build dependencies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
use Test;
 
2
 
 
3
BEGIN { plan tests => 1; }
 
4
 
 
5
use XML::LibXML;
 
6
 
 
7
# XML::LibXML->load_catalog( "example/catalog.xml" );
 
8
 
 
9
# the following document should not be able to get parsed 
 
10
# if the catalog is not available
 
11
 
 
12
my $doc = XML::LibXML->new( catalog => "example/catalog.xml" )->parse_string(<<EOF);
 
13
<!DOCTYPE article
 
14
  PUBLIC "-//Perl//XML LibXML V4.1.2//EN"
 
15
  "http://axkit.org/xml-libxml/test.dtd">
 
16
<article>
 
17
<pubData>Something here</pubData>
 
18
<pubArticleID>12345</pubArticleID>
 
19
<pubDate>2001-04-01</pubDate>
 
20
<pubName>XML.com</pubName>
 
21
<section>Foo</section>
 
22
<lead>Here's some leading text</lead>
 
23
<rest>And here is the rest...</rest>
 
24
</article>
 
25
EOF
 
26
 
 
27
ok($doc);
 
 
b'\\ No newline at end of file'