diff options
author | knut <> | 2006-05-16 19:03:46 +0000 |
---|---|---|
committer | knut <> | 2006-05-16 19:03:46 +0000 |
commit | 042aecd418ba8294e05b4be816abcc880c166af1 (patch) | |
tree | 282d914d31553e8bb8875e17ea8578efbc6c8224 /tests | |
parent | c6730f23829f07c404b65ed3d1f5c2a5808be2cf (diff) |
Added unit test stubs for System.Web.* #168
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/Web/TAssetManagerTest.php | 31 | ||||
-rw-r--r-- | tests/unit/Web/THttpCookieCollectionTest.php | 31 | ||||
-rw-r--r-- | tests/unit/Web/THttpCookieTest.php | 39 | ||||
-rw-r--r-- | tests/unit/Web/THttpRequestTest.php | 175 | ||||
-rw-r--r-- | tests/unit/Web/THttpResponseTest.php | 95 | ||||
-rw-r--r-- | tests/unit/Web/THttpSessionTest.php | 115 | ||||
-rw-r--r-- | tests/unit/Web/THttpUtilityTest.php | 19 | ||||
-rw-r--r-- | tests/unit/Web/TUriTest.php | 51 |
8 files changed, 556 insertions, 0 deletions
diff --git a/tests/unit/Web/TAssetManagerTest.php b/tests/unit/Web/TAssetManagerTest.php new file mode 100644 index 00000000..1821f28b --- /dev/null +++ b/tests/unit/Web/TAssetManagerTest.php @@ -0,0 +1,31 @@ +<?php +require_once dirname(__FILE__).'/../phpunit2.php'; + +Prado::using('System.Web.TAssetManager'); + +/** + * @package System.Web + */ +class TAssetManagerTest extends PHPUnit2_Framework_TestCase { + + public function testInit() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetBasePath() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetBaseUrl() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testPublishFilePath() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testPublishTarFile() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } +} +?>
\ No newline at end of file diff --git a/tests/unit/Web/THttpCookieCollectionTest.php b/tests/unit/Web/THttpCookieCollectionTest.php new file mode 100644 index 00000000..28b32a6e --- /dev/null +++ b/tests/unit/Web/THttpCookieCollectionTest.php @@ -0,0 +1,31 @@ +<?php +require_once dirname(__FILE__).'/../phpunit2.php'; + +Prado::using('System.Web.THttpRequest'); + +/** + * @package System.Web + */ +class THttpCookieCollectionTest 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(); + } + + public function testItemAt() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testFindCookieByName() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } +} +?>
\ No newline at end of file diff --git a/tests/unit/Web/THttpCookieTest.php b/tests/unit/Web/THttpCookieTest.php new file mode 100644 index 00000000..ab7d4928 --- /dev/null +++ b/tests/unit/Web/THttpCookieTest.php @@ -0,0 +1,39 @@ +<?php +require_once dirname(__FILE__).'/../phpunit2.php'; + +Prado::using('System.Web.THttpRequest'); + +/** + * @package System.Web + */ +class THttpCookieTest extends PHPUnit2_Framework_TestCase { + + public function testConstruct() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetDomain() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetExpire() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetName() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetValue() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetPath() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetSecure() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } +} +?>
\ No newline at end of file diff --git a/tests/unit/Web/THttpRequestTest.php b/tests/unit/Web/THttpRequestTest.php new file mode 100644 index 00000000..a27eb711 --- /dev/null +++ b/tests/unit/Web/THttpRequestTest.php @@ -0,0 +1,175 @@ +<?php +require_once dirname(__FILE__).'/../phpunit2.php'; + +Prado::using('System.Web.THttpRequest'); + +/** + * @package System.Web + */ +class THttpRequestTest extends PHPUnit2_Framework_TestCase { + + public function testInit() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testStripSlashes() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetUrlFormat() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetUrl() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetRequestMethod() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetIsSecureConnection() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetPathInfo() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetQueryString() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetRequestUri() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetApplicationUrl() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetApplicationFilePath() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetServerName() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetServerPort() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetUrlReferrer() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetBrowser() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetUserAgent() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetUserHostAddress() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetUserHost() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetAcceptTypes() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetUserLanguages() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetEnableCookieValidation() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetCookies() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetUploadedFiles() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetServerVariables() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetEnvironmentVariables() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testConstructUrl() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetAvailableServices() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetAvailableServices() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetServiceID() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetIterator() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetCount() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetKeys() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testItemAt() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testAdd() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testRemove() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testContains() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testToArray() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testOffsetExists() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testOffsetGet() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testOffsetSet() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testOffsetUnset() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } +} +?>
\ No newline at end of file diff --git a/tests/unit/Web/THttpResponseTest.php b/tests/unit/Web/THttpResponseTest.php new file mode 100644 index 00000000..9812c3a6 --- /dev/null +++ b/tests/unit/Web/THttpResponseTest.php @@ -0,0 +1,95 @@ +<?php +require_once dirname(__FILE__).'/../phpunit2.php'; + +Prado::using('System.Web.THttpResponse'); + +/** + * @package System.Web + */ +class THttpResponseTest extends PHPUnit2_Framework_TestCase { + + public function testInit() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetCacheExpire() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetCacheControl() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetContentType() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetCharset() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetBufferOutput() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetStatusCode() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetCookies() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testWrite() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testWriteFile() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testRedirect() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testReload() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testFlush() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSendContentTypeHeader() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testClear() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testAppendHeader() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testAppendLog() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testAddCookie() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testRemoveCookie() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetHtmlWriterType() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testCreateHtmlWriter() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } +} +?>
\ No newline at end of file diff --git a/tests/unit/Web/THttpSessionTest.php b/tests/unit/Web/THttpSessionTest.php new file mode 100644 index 00000000..8f30cfa6 --- /dev/null +++ b/tests/unit/Web/THttpSessionTest.php @@ -0,0 +1,115 @@ +<?php +require_once dirname(__FILE__).'/../phpunit2.php'; + +Prado::using('System.Web.THttpSession'); + +/** + * @package System.Web + */ +class THttpSessionTest extends PHPUnit2_Framework_TestCase { + + public function testInit() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testOpen() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testClose() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testDestroy() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetIsStarted() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetSessionID() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetSessionName() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetSavePath() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetUseCustomStorage() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetCookieMode() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetAutoStart() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetGProbability() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetUseTransparentSessionID() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testSetTimeout() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetIterator() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetCount() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetKeys() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testItemAt() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testAdd() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testRemove() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testContains() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testToArray() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testOffsetExists() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testOffsetGet() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testOffsetSet() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testOffsetUnset() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } +} +?>
\ No newline at end of file diff --git a/tests/unit/Web/THttpUtilityTest.php b/tests/unit/Web/THttpUtilityTest.php new file mode 100644 index 00000000..790bc9f6 --- /dev/null +++ b/tests/unit/Web/THttpUtilityTest.php @@ -0,0 +1,19 @@ +<?php +require_once dirname(__FILE__).'/../phpunit2.php'; + +Prado::using('System.Web.THttpUtility'); + +/** + * @package System.Web + */ +class THttpUtilityTest extends PHPUnit2_Framework_TestCase { + + public function testHtmlEncode() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testHtmlDecode() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } +} +?>
\ No newline at end of file diff --git a/tests/unit/Web/TUriTest.php b/tests/unit/Web/TUriTest.php new file mode 100644 index 00000000..b606bdc3 --- /dev/null +++ b/tests/unit/Web/TUriTest.php @@ -0,0 +1,51 @@ +<?php +require_once dirname(__FILE__).'/../phpunit2.php'; + +Prado::using('System.Web.THttpRequest'); + +/** + * @package System.Web + */ +class TUriTest extends PHPUnit2_Framework_TestCase { + + public function testConstruct() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetUri() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetScheme() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetHost() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetPort() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetUser() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetPassword() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetPath() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetQuery() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } + + public function testGetFragment() { + throw new PHPUnit2_Framework_IncompleteTestError(); + } +} +?>
\ No newline at end of file |