summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorknut <>2007-06-19 22:37:27 +0000
committerknut <>2007-06-19 22:37:27 +0000
commit186da7689fbefd22726c5b751b60f7aeccba6a98 (patch)
treece0684bca2b3e3b2569a790eeb775fc262bb0736 /tests/unit
parent869a2aa2bad745d7363833489b234e45a2200692 (diff)
added some more unit test stubs
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/IO/AllTests.php2
-rw-r--r--tests/unit/IO/TTarFileExtractorTest.php24
-rw-r--r--tests/unit/Web/UI/AllTests.php12
-rw-r--r--tests/unit/Web/UI/THtmlWriterTest.php68
-rw-r--r--tests/unit/Web/UI/TPageStatePersisterTest.php24
-rw-r--r--tests/unit/Web/UI/TSessionPageStatePersisterTest.php28
-rw-r--r--tests/unit/Web/UI/TTemplateControlTest.php48
-rw-r--r--tests/unit/Web/UI/TTemplateManagerTest.php24
-rw-r--r--tests/unit/Web/UI/TTemplateTest.php48
-rw-r--r--tests/unit/Web/UI/TThemeManagerTest.php32
-rw-r--r--tests/unit/Web/UI/TThemeTest.php40
11 files changed, 346 insertions, 4 deletions
diff --git a/tests/unit/IO/AllTests.php b/tests/unit/IO/AllTests.php
index da8d91a0..b6871e23 100644
--- a/tests/unit/IO/AllTests.php
+++ b/tests/unit/IO/AllTests.php
@@ -5,6 +5,7 @@ if(!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'IO_AllTests::main');
}
+require_once 'TTarFileExtractorTest.php';
require_once 'TTextWriterTest.php';
class IO_AllTests {
@@ -15,6 +16,7 @@ class IO_AllTests {
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('System.IO');
+ $suite->addTestSuite('TTarFileExtractorTest');
$suite->addTestSuite('TTextWriterTest');
return $suite;
diff --git a/tests/unit/IO/TTarFileExtractorTest.php b/tests/unit/IO/TTarFileExtractorTest.php
new file mode 100644
index 00000000..6742fcf5
--- /dev/null
+++ b/tests/unit/IO/TTarFileExtractorTest.php
@@ -0,0 +1,24 @@
+<?php
+require_once dirname(__FILE__).'/../phpunit.php';
+
+Prado::using('System.IO.TTarFileExtractor');
+
+/**
+ * @package System.IO
+ */
+class TTarFileExtractorTest extends PHPUnit_Framework_TestCase {
+
+ public function testConstruct() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testDestruct() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testExtract() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+}
+?> \ No newline at end of file
diff --git a/tests/unit/Web/UI/AllTests.php b/tests/unit/Web/UI/AllTests.php
index 177852b3..3bf389d5 100644
--- a/tests/unit/Web/UI/AllTests.php
+++ b/tests/unit/Web/UI/AllTests.php
@@ -10,12 +10,14 @@ require_once 'TControlAdapterTest.php';
require_once 'TControlTest.php';
require_once 'TFormTest.php';
require_once 'TPageTest.php';
-/*require_once 'TTemplateControlTest.php';
+require_once 'TTemplateControlTest.php';
require_once 'TTemplateManagerTest.php';
+require_once 'TTemplateTest.php';
require_once 'TThemeManagerTest.php';
+require_once 'TThemeTest.php';
require_once 'THtmlWriterTest.php';
require_once 'TPageStatePersisterTest.php';
-require_once 'TSessionPageStatePersisterTest.php';*/
+require_once 'TSessionPageStatePersisterTest.php';
class Web_UI_AllTests {
public static function main() {
@@ -30,12 +32,14 @@ class Web_UI_AllTests {
$suite->addTestSuite('TControlTest');
$suite->addTestSuite('TFormTest');
$suite->addTestSuite('TPageTest');
- /*$suite->addTestSuite('TTemplateControlTest');
+ $suite->addTestSuite('TTemplateControlTest');
$suite->addTestSuite('TTemplateManagerTest');
+ $suite->addTestSuite('TTemplateTest');
$suite->addTestSuite('TThemeManagerTest');
+ $suite->addTestSuite('TThemeTest');
$suite->addTestSuite('THtmlWriterTest');
$suite->addTestSuite('TPageStatePersisterTest');
- $suite->addTestSuite('TSessionPageStatePersisterTest');*/
+ $suite->addTestSuite('TSessionPageStatePersisterTest');
return $suite;
}
diff --git a/tests/unit/Web/UI/THtmlWriterTest.php b/tests/unit/Web/UI/THtmlWriterTest.php
new file mode 100644
index 00000000..f2ed7086
--- /dev/null
+++ b/tests/unit/Web/UI/THtmlWriterTest.php
@@ -0,0 +1,68 @@
+<?php
+require_once dirname(__FILE__).'/../../phpunit.php';
+
+Prado::using('System.Web.UI.THtmlWriter');
+
+/**
+ * @package System.Web.UI
+ */
+class THtmlWriterTest extends PHPUnit_Framework_TestCase {
+
+ public function testConstruct() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testSetAndGetWriter() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testAddAttributes() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testAddAttribute() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testRemoveAttribute() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testAddStyleAttributes() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testAddStyleAttribute() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testRemoveStyleAttribute() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testFlush() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testWrite() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testWriteLine() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testWriteBreak() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testRenderBeginTag() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testRenderEndTag() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+}
+?> \ No newline at end of file
diff --git a/tests/unit/Web/UI/TPageStatePersisterTest.php b/tests/unit/Web/UI/TPageStatePersisterTest.php
new file mode 100644
index 00000000..02a2df2b
--- /dev/null
+++ b/tests/unit/Web/UI/TPageStatePersisterTest.php
@@ -0,0 +1,24 @@
+<?php
+require_once dirname(__FILE__).'/../../phpunit.php';
+
+Prado::using('System.Web.UI.TPageStatePersister');
+
+/**
+ * @package System.Web.UI
+ */
+class TPageStatePersisterTest extends PHPUnit_Framework_TestCase {
+
+ public function testSetAndGetPage() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testSave() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testLoad() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+}
+?> \ No newline at end of file
diff --git a/tests/unit/Web/UI/TSessionPageStatePersisterTest.php b/tests/unit/Web/UI/TSessionPageStatePersisterTest.php
new file mode 100644
index 00000000..1422c4c7
--- /dev/null
+++ b/tests/unit/Web/UI/TSessionPageStatePersisterTest.php
@@ -0,0 +1,28 @@
+<?php
+require_once dirname(__FILE__).'/../../phpunit.php';
+
+Prado::using('System.Web.UI.TSessionPageStatePersister');
+
+/**
+ * @package System.Web.UI
+ */
+class TSessionPageStatePersisterTest extends PHPUnit_Framework_TestCase {
+
+ public function testSetAndGetPage() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testSetAndGetHistorySize() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testSave() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testLoad() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+}
+?> \ No newline at end of file
diff --git a/tests/unit/Web/UI/TTemplateControlTest.php b/tests/unit/Web/UI/TTemplateControlTest.php
new file mode 100644
index 00000000..a4468fd6
--- /dev/null
+++ b/tests/unit/Web/UI/TTemplateControlTest.php
@@ -0,0 +1,48 @@
+<?php
+require_once dirname(__FILE__).'/../../phpunit.php';
+
+Prado::using('System.Web.UI.TTemplateControl');
+
+/**
+ * @package System.Web.UI
+ */
+class TTemplateControlTest extends PHPUnit_Framework_TestCase {
+
+ public function testSetAndGetTemplate() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetIsSourceTemplateControl() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetTemplateDirectory() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testCreateChildControls() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testRegisterContent() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testRegisterContentPlaceHolder() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testSetAndGetMasterClass() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetMaster() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testInjectContent() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+}
+?> \ No newline at end of file
diff --git a/tests/unit/Web/UI/TTemplateManagerTest.php b/tests/unit/Web/UI/TTemplateManagerTest.php
new file mode 100644
index 00000000..e8479ef9
--- /dev/null
+++ b/tests/unit/Web/UI/TTemplateManagerTest.php
@@ -0,0 +1,24 @@
+<?php
+require_once dirname(__FILE__).'/../../phpunit.php';
+
+Prado::using('System.Web.UI.TTemplateManager');
+
+/**
+ * @package System.Web.UI
+ */
+class TTemplateManagerTest extends PHPUnit_Framework_TestCase {
+
+ public function testInit() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetTemplateByClassName() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetTemplateByFileName() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+}
+?> \ No newline at end of file
diff --git a/tests/unit/Web/UI/TTemplateTest.php b/tests/unit/Web/UI/TTemplateTest.php
new file mode 100644
index 00000000..bfd4f1f4
--- /dev/null
+++ b/tests/unit/Web/UI/TTemplateTest.php
@@ -0,0 +1,48 @@
+<?php
+require_once dirname(__FILE__).'/../../phpunit.php';
+
+Prado::using('System.Web.UI.TTemplateManager');
+
+/**
+ * @package System.Web.UI
+ */
+class TTemplateTest extends PHPUnit_Framework_TestCase {
+
+ public function testConstruct() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetTemplateFile() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetIsSourceTemplate() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetContextPath() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetDirective() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetHashCode() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetItems() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testInstantiateIn() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetIncludedFiles() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+}
+?> \ No newline at end of file
diff --git a/tests/unit/Web/UI/TThemeManagerTest.php b/tests/unit/Web/UI/TThemeManagerTest.php
new file mode 100644
index 00000000..7db1bd38
--- /dev/null
+++ b/tests/unit/Web/UI/TThemeManagerTest.php
@@ -0,0 +1,32 @@
+<?php
+require_once dirname(__FILE__).'/../../phpunit.php';
+
+Prado::using('System.Web.UI.TThemeManager');
+
+/**
+ * @package System.Web.UI
+ */
+class TThemeManagerTest extends PHPUnit_Framework_TestCase {
+
+ public function testInit() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetTheme() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetAvailableThemes() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testSetAndGetBasePath() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testSetAndGetBaseUrl() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+}
+?> \ No newline at end of file
diff --git a/tests/unit/Web/UI/TThemeTest.php b/tests/unit/Web/UI/TThemeTest.php
new file mode 100644
index 00000000..e007cc49
--- /dev/null
+++ b/tests/unit/Web/UI/TThemeTest.php
@@ -0,0 +1,40 @@
+<?php
+require_once dirname(__FILE__).'/../../phpunit.php';
+
+Prado::using('System.Web.UI.TThemeManager');
+
+/**
+ * @package System.Web.UI
+ */
+class TThemeTest extends PHPUnit_Framework_TestCase {
+
+ public function testConstruct() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetName() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetBaseUrl() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetBasePath() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testApplySkin() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetStyleSheetFiles() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+ public function testGetJavaScriptFiles() {
+ throw new PHPUnit_Framework_IncompleteTestError();
+ }
+
+}
+?> \ No newline at end of file