summaryrefslogtreecommitdiff
path: root/tests/unit/Xml/TXmlDocumentTest.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-01-15 19:05:25 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-08-23 12:30:22 +0200
commit9733613002b664ec9cbdc6dec9d6fd57ee901f1e (patch)
treeca20722ae61a4ff9046c58cef4d2e374801800da /tests/unit/Xml/TXmlDocumentTest.php
parent21a909f819cc340564770ea63e383ee6013fc167 (diff)
Removed ?> from tests
Diffstat (limited to 'tests/unit/Xml/TXmlDocumentTest.php')
-rw-r--r--tests/unit/Xml/TXmlDocumentTest.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/Xml/TXmlDocumentTest.php b/tests/unit/Xml/TXmlDocumentTest.php
index 2ab95641..54e4b5aa 100644
--- a/tests/unit/Xml/TXmlDocumentTest.php
+++ b/tests/unit/Xml/TXmlDocumentTest.php
@@ -34,7 +34,7 @@ class TXmlDocumentTest extends PHPUnit_Framework_TestCase {
$xmldoc->loadFromFile('unexistentXmlFile.xml');
self::fail('Expected TIOException not thrown');
} catch (TIOException $e) {}
-
+
self::assertTrue($xmldoc->loadFromFile($file));
self::assertEquals('1.0', $xmldoc->getVersion());
self::assertEquals('UTF-8',$xmldoc->getEncoding());
@@ -61,9 +61,9 @@ class TXmlDocumentTest extends PHPUnit_Framework_TestCase {
// Result string should be :
$resultString="<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <node param=\"attribute1\"\n</root>";
self::assertEquals($xmlString, $magicString);
-
+
}
-
+
public function testSaveToFile() {
$file=dirname(__FILE__).'/data/tmp.xml';
if (!is_writable(dirname($file))) self::markTestSkipped(dirname($file).' must be writable for this test');
@@ -77,4 +77,3 @@ class TXmlDocumentTest extends PHPUnit_Framework_TestCase {
if (is_file($file)) unlink ($file);
}
}
-?>