summaryrefslogtreecommitdiff
path: root/tests/UnitTests/framework/Data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/UnitTests/framework/Data')
-rw-r--r--tests/UnitTests/framework/Data/utXmlDocument.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/UnitTests/framework/Data/utXmlDocument.php b/tests/UnitTests/framework/Data/utXmlDocument.php
index f66a4f2d..ec0e43c7 100644
--- a/tests/UnitTests/framework/Data/utXmlDocument.php
+++ b/tests/UnitTests/framework/Data/utXmlDocument.php
@@ -16,6 +16,20 @@ class utXmlDocument extends UnitTestCase
{
$dir=dirname(__FILE__).'/xml';
+ $doc=new TXmlDocument;
+ try
+ {
+ $doc->loadFromFile('nonexisting.xml');
+ $this->fail('exception not raised when openning a nonexistent file.');
+ }
+ catch(TIOException $e)
+ {
+ $this->pass();
+ }
+
+ $doc=new TXmlDocument;
+ $this->assertFalse(@$doc->loadFromString('$12341'));
+
// a regular XML file
$doc=new TXmlDocument;
$doc->loadFromFile($dir.'/data1.xml');