summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorknut <>2006-05-16 18:16:16 +0000
committerknut <>2006-05-16 18:16:16 +0000
commitc6730f23829f07c404b65ed3d1f5c2a5808be2cf (patch)
tree069e9665191f4822a18a06bba07aef916ea6a5ac /tests/unit
parent5a73a2d3140db38cba43bf34f90831e0e26a8ffd (diff)
Added unit test stubs for Xml classes #168
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/Xml/TXmlDocumentTest.php35
-rw-r--r--tests/unit/Xml/TXmlElementListTest.php23
-rw-r--r--tests/unit/Xml/TXmlElementTest.php46
3 files changed, 104 insertions, 0 deletions
diff --git a/tests/unit/Xml/TXmlDocumentTest.php b/tests/unit/Xml/TXmlDocumentTest.php
new file mode 100644
index 00000000..fe08edda
--- /dev/null
+++ b/tests/unit/Xml/TXmlDocumentTest.php
@@ -0,0 +1,35 @@
+<?php
+require_once dirname(__FILE__).'/../phpunit2.php';
+
+Prado::using('System.Xml.TXmlDocument');
+
+/**
+ * @package System.Xml
+ */
+class TXmlDocumentTest extends PHPUnit2_Framework_TestCase {
+
+ public function testConstruct() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testSetVersion() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testSetEncoding() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testLoadFromFile() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testLoadFromString() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testSaveToString() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+}
+?> \ No newline at end of file
diff --git a/tests/unit/Xml/TXmlElementListTest.php b/tests/unit/Xml/TXmlElementListTest.php
new file mode 100644
index 00000000..cfebf095
--- /dev/null
+++ b/tests/unit/Xml/TXmlElementListTest.php
@@ -0,0 +1,23 @@
+<?php
+require_once dirname(__FILE__).'/../phpunit2.php';
+
+Prado::using('System.Xml.TXmlDocument');
+
+/**
+ * @package System.Xml
+ */
+class TXmlElementListTest extends PHPUnit2_Framework_TestCase {
+
+ public function testConstruct() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testInsertAt() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testRemoveAt() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+}
+?> \ No newline at end of file
diff --git a/tests/unit/Xml/TXmlElementTest.php b/tests/unit/Xml/TXmlElementTest.php
new file mode 100644
index 00000000..41431633
--- /dev/null
+++ b/tests/unit/Xml/TXmlElementTest.php
@@ -0,0 +1,46 @@
+<?php
+require_once dirname(__FILE__).'/../phpunit2.php';
+
+Prado::using('System.Xml.TXmlDocument');
+
+/**
+ * @package System.Xml
+ */
+class TXmlElementTest extends PHPUnit2_Framework_TestCase {
+
+ public function setUp() {
+ }
+
+ public function testConstruct() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testSetParent() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testSetTagName() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testSetValue() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testSetAttribute() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testGetElementByTagName() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testGetElementsByTagName() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+
+ public function testToString() {
+ throw new PHPUnit2_Framework_IncompleteTestError();
+ }
+}
+?> \ No newline at end of file