summaryrefslogtreecommitdiff
path: root/tests/unit/Web
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/Web')
-rw-r--r--tests/unit/Web/AllTests.php9
-rw-r--r--tests/unit/Web/TAssetManagerTest.php57
-rw-r--r--tests/unit/Web/TCacheHttpSessionTest.php31
-rw-r--r--tests/unit/Web/THttpCookieCollectionTest.php5
-rw-r--r--tests/unit/Web/THttpCookieTest.php3
-rw-r--r--tests/unit/Web/THttpRequestTest.php3
-rw-r--r--tests/unit/Web/THttpResponseTest.php21
-rw-r--r--tests/unit/Web/THttpSessionTest.php3
-rw-r--r--tests/unit/Web/THttpUtilityTest.php3
-rw-r--r--tests/unit/Web/TUriTest.php13
-rw-r--r--tests/unit/Web/UI/ActiveControls/AllTests.php7
-rw-r--r--tests/unit/Web/UI/ActiveControls/TActiveHiddenFieldTest.php2
-rw-r--r--tests/unit/Web/UI/AllTests.php7
-rw-r--r--tests/unit/Web/UI/TClientScriptManagerTest.php3
-rw-r--r--tests/unit/Web/UI/TControlAdapterTest.php23
-rw-r--r--tests/unit/Web/UI/TControlTest.php133
-rw-r--r--tests/unit/Web/UI/TFormTest.php11
-rw-r--r--tests/unit/Web/UI/THtmlWriterTest.php13
-rw-r--r--tests/unit/Web/UI/TPageStatePersisterTest.php9
-rw-r--r--tests/unit/Web/UI/TPageTest.php95
-rw-r--r--tests/unit/Web/UI/TSessionPageStatePersisterTest.php11
-rw-r--r--tests/unit/Web/UI/TTemplateControlTest.php17
-rw-r--r--tests/unit/Web/UI/TTemplateManagerTest.php11
-rw-r--r--tests/unit/Web/UI/TTemplateTest.php23
-rw-r--r--tests/unit/Web/UI/TThemeManagerTest.php13
-rw-r--r--tests/unit/Web/UI/TThemeTest.php17
-rw-r--r--tests/unit/Web/UI/WebControls/AllTests.php7
-rw-r--r--tests/unit/Web/UI/WebControls/TDropDownListTest.php1
-rw-r--r--tests/unit/Web/UI/WebControls/TLabelTest.php2
-rw-r--r--tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php2
-rw-r--r--tests/unit/Web/UI/WebControls/TXmlTransformTest.php5
31 files changed, 259 insertions, 301 deletions
diff --git a/tests/unit/Web/AllTests.php b/tests/unit/Web/AllTests.php
index f9b3b91d..ffd98978 100644
--- a/tests/unit/Web/AllTests.php
+++ b/tests/unit/Web/AllTests.php
@@ -20,10 +20,10 @@ class Web_AllTests {
public static function main() {
PHPUnit_TextUI_TestRunner::run(self::suite());
}
-
+
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('System.Web');
-
+
$suite->addTestSuite('TAssetManagerTest');
$suite->addTestSuite('TCacheHttpSessionTest');
$suite->addTestSuite('THttpCookieCollectionTest');
@@ -33,9 +33,9 @@ class Web_AllTests {
$suite->addTestSuite('THttpSessionTest');
$suite->addTestSuite('THttpUtilityTest');
$suite->addTestSuite('TUriTest');
-
+
$suite->addTest(Web_UI_AllTests::suite());
-
+
return $suite;
}
}
@@ -43,4 +43,3 @@ class Web_AllTests {
if(PHPUnit_MAIN_METHOD == 'Web_AllTests::main') {
Web_AllTests::main();
}
-?>
diff --git a/tests/unit/Web/TAssetManagerTest.php b/tests/unit/Web/TAssetManagerTest.php
index 89349a0d..13d2d6c1 100644
--- a/tests/unit/Web/TAssetManagerTest.php
+++ b/tests/unit/Web/TAssetManagerTest.php
@@ -26,26 +26,26 @@ class TAssetManagerTest extends PHPUnit_Framework_TestCase {
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
$_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3';
$_SERVER['REMOTE_HOST'] = 'localhost';
-
+
if (self::$app===null) {
self::$app=new TApplication(dirname(__FILE__).'/app');
}
-
+
if (self::$assetDir===null) self::$assetDir= dirname(__FILE__).'/assets';
- // Make asset directory if not exists
+ // Make asset directory if not exists
if (!file_exists (self::$assetDir)) {
- if (is_writable(dirname(self::$assetDir)))
+ if (is_writable(dirname(self::$assetDir)))
mkdir (self::$assetDir) ;
- else
+ else
throw new Exception ('Directory '.dirname(self::$assetDir).' is not writable');
} elseif (!is_dir (self::$assetDir)) {
throw new Exception (self::$assetDir.' exists and is not a directory');
}
// Define an alias to asset directory
prado::setPathofAlias('AssetAlias', self::$assetDir);
-
+
}
-
+
private function removeDirectory ($dir) {
// Let's be sure $dir is a directory to avoir any error. Clear the cache !
clearstatcache();
@@ -53,7 +53,7 @@ class TAssetManagerTest extends PHPUnit_Framework_TestCase {
foreach (scandir($dir) as $content) {
if ($content==='.' or $content==='..') continue; // skip . and ..
$content=$dir.'/'.$content;
- if (is_dir($content))
+ if (is_dir($content))
$this->removeDirectory ($content); // Recursivly remove directories
else
unlink ($content); // Remove file
@@ -62,21 +62,21 @@ class TAssetManagerTest extends PHPUnit_Framework_TestCase {
rmdir ($dir);
}
}
-
+
public function tearDown () {
// Make some cleaning :)
- $this->removeDirectory(self::$assetDir);
+ $this->removeDirectory(self::$assetDir);
}
-
+
public function testInit() {
-
+
$manager=new TAssetManager ();
$manager->init (null);
-
+
self::assertEquals(self::$assetDir, $manager->getBasePath());
self::assertEquals($manager, self::$app->getAssetManager());
-
+
// No, remove asset directory, and catch the exception
if (is_dir(self::$assetDir)) $this->removeDirectory (self::$assetDir);
try {
@@ -92,12 +92,12 @@ class TAssetManagerTest extends PHPUnit_Framework_TestCase {
$manager->setBasePath('invalid');
self::fail('Expected TInvalidDataValueException not thrown');
} catch (TInvalidDataValueException $e) {}
-
+
// Next, standard asset directory, should work
-
+
$manager->setBasePath ('AssetAlias');
self::assertEquals(self::$assetDir, $manager->getBasePath());
-
+
// Finally, test to change after init
$manager->init (null);
try {
@@ -111,20 +111,20 @@ class TAssetManagerTest extends PHPUnit_Framework_TestCase {
$manager=new TAssetManager ();
$manager->setBaseUrl ('/assets/');
self::assertEquals("/assets", $manager->getBaseUrl());
-
+
$manager->init (null);
try {
$manager->setBaseUrl ('/test');
self::fail ('Expected TInvalidOperationException not thrown');
} catch (TInvalidOperationException $e) {}
-
+
}
public function testPublishFilePath() {
$manager=new TAssetManager();
$manager->setBaseUrl('/');
$manager->init (null);
-
+
// Try to publish a single file
$fileToPublish=dirname(__FILE__).'/data/pradoheader.gif';
$publishedUrl = $manager->publishFilePath($fileToPublish);
@@ -132,19 +132,19 @@ class TAssetManagerTest extends PHPUnit_Framework_TestCase {
self::assertEquals($publishedFile, $manager->getPublishedPath($fileToPublish));
self::assertEquals($publishedUrl, $manager->getPublishedUrl($fileToPublish));
self::assertTrue(is_file($publishedFile));
-
+
// try to publish invalid file
try {
$manager->publishFilePath('invalid_file');
self::fail('Expected TInvalidDataValueException not thrown');
} catch (TInvalidDataValueException $e) {}
}
-
+
public function testPublishFilePathWithDirectory () {
$manager=new TAssetManager();
$manager->setBaseUrl('/');
$manager->init (null);
-
+
// Try to publish a directory
$dirToPublish=dirname(__FILE__).'/data';
$publishedUrl = $manager->publishFilePath($dirToPublish);
@@ -153,23 +153,23 @@ class TAssetManagerTest extends PHPUnit_Framework_TestCase {
self::assertEquals($publishedUrl, $manager->getPublishedUrl($dirToPublish));
self::assertTrue(is_dir($publishedDir));
self::assertTrue(is_file($publishedDir.'/pradoheader.gif'));
-
+
}
public function testPublishTarFile() {
$manager=new TAssetManager();
$manager->setBaseUrl('/');
$manager->init (null);
-
+
$tarFile=dirname(__FILE__).'/data/aTarFile.tar';
$md5File=dirname(__FILE__).'/data/aTarFile.md5';
-
+
// First, try with bad md5
try {
$manager->publishTarFile($tarFile, 'badMd5File');
self::fail('Expected TInvalidDataValueException not thrown');
} catch (TInvalidDataValueException $e) {}
-
+
// Then, try with real md5 file
$publishedUrl=$manager->publishTarFile($tarFile, $md5File);
$publishedDir=self::$assetDir.$publishedUrl;
@@ -178,5 +178,4 @@ class TAssetManagerTest extends PHPUnit_Framework_TestCase {
self::assertTrue(is_file($publishedDir.'/aTarFile.md5'));
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/TCacheHttpSessionTest.php b/tests/unit/Web/TCacheHttpSessionTest.php
index 15c2a382..8475cd37 100644
--- a/tests/unit/Web/TCacheHttpSessionTest.php
+++ b/tests/unit/Web/TCacheHttpSessionTest.php
@@ -11,14 +11,14 @@ class TCacheHttpSessionTest extends PHPUnit_Framework_TestCase
protected $app = null;
protected static $cache = null;
protected static $session = null;
-
+
protected function setUp()
{
if(!extension_loaded('memcache'))
{
self::markTestSkipped('The memcache extension is not available');
}
- else
+ else
{
$basePath = dirname(__FILE__).'/app';
$runtimePath = $basePath.'/runtime';
@@ -33,14 +33,14 @@ class TCacheHttpSessionTest extends PHPUnit_Framework_TestCase
$this->app->setModule('MyCache',self::$cache);
}
}
-
+
protected function tearDown()
{
$this->app = null;
$this->cache = null;
$this->session = null;
}
-
+
public function testInit()
{
$session = new TCacheHttpSession();
@@ -53,7 +53,7 @@ class TCacheHttpSessionTest extends PHPUnit_Framework_TestCase
{
}
unset($session);
-
+
$session = new TCacheHttpSession();
try
{
@@ -66,12 +66,12 @@ class TCacheHttpSessionTest extends PHPUnit_Framework_TestCase
{
}
unset($session);
-
+
self::$session = new TCacheHttpSession();
try
{
self::$session->setCacheModuleID('MyCache');
- self::$session->init(null);
+ self::$session->init(null);
}
catch(TConfigurationException $e)
{
@@ -79,50 +79,49 @@ class TCacheHttpSessionTest extends PHPUnit_Framework_TestCase
self::markTestSkipped('Cannot continue this test');
}
}
-
+
public function testGetCache()
{
$cache = self::$session->getCache();
$this->assertEquals(true, $cache instanceof TMemCache);
}
-
+
public function testCacheModuleID()
{
$id = 'value';
self::$session->setCacheModuleID($id);
self::assertEquals($id, self::$session->getCacheModuleID());
}
-
+
public function testKeyPrefix()
{
$id = 'value';
self::$session->setKeyPrefix($id);
self::assertEquals($id, self::$session->getKeyPrefix());
}
-
+
public function testSetAndGet()
{
self::$session['key'] = 'value';
self::assertEquals('value', self::$session['key']);
}
-
+
public function testAdd()
{
self::$session->add('anotherkey', 'value');
self::assertEquals('value', self::$session['anotherkey']);
}
-
+
public function testRemove()
{
self::$session->remove('key');
self::assertEquals(false, self::$session['key']);
}
-
+
public function testDestroyAndIsStarted()
{
$this->testSetAndGet();
self::$session->destroy();
self::assertEquals(false, self::$session->getIsStarted());
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/THttpCookieCollectionTest.php b/tests/unit/Web/THttpCookieCollectionTest.php
index 68ea8777..aa091788 100644
--- a/tests/unit/Web/THttpCookieCollectionTest.php
+++ b/tests/unit/Web/THttpCookieCollectionTest.php
@@ -28,7 +28,7 @@ class THttpCookieCollectionTest extends PHPUnit_Framework_TestCase {
$coll->removeAt(0);
self::fail('Invalid Value exception not raised');
} catch (TInvalidDataValueException $e) {}
-
+
$coll->insertAt(0, new THttpCookie('name','value'));
self::assertEquals('value',$coll->removeAt(0)->getValue());
}
@@ -46,5 +46,4 @@ class THttpCookieCollectionTest extends PHPUnit_Framework_TestCase {
self::assertEquals ('value', $coll->findCookieByName('name')->getValue());
self::assertNull ($coll->findCookieByName('invalid'));
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/THttpCookieTest.php b/tests/unit/Web/THttpCookieTest.php
index 31d8e572..206ef105 100644
--- a/tests/unit/Web/THttpCookieTest.php
+++ b/tests/unit/Web/THttpCookieTest.php
@@ -49,5 +49,4 @@ class THttpCookieTest extends PHPUnit_Framework_TestCase {
$cookie->setSecure(true);
self::assertTrue($cookie->getSecure());
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/THttpRequestTest.php b/tests/unit/Web/THttpRequestTest.php
index 1807bbe2..7f5da17d 100644
--- a/tests/unit/Web/THttpRequestTest.php
+++ b/tests/unit/Web/THttpRequestTest.php
@@ -503,5 +503,4 @@ class THttpRequestTest extends PHPUnit_Framework_TestCase {
$module->init ($config);
self::assertEquals('testService', $request->resolveRequest(array ('page', 'testService')));
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/THttpResponseTest.php b/tests/unit/Web/THttpResponseTest.php
index dadbd768..0855bf4d 100644
--- a/tests/unit/Web/THttpResponseTest.php
+++ b/tests/unit/Web/THttpResponseTest.php
@@ -7,18 +7,18 @@ Prado::using('System.Web.THttpResponse');
* @package System.Web
*/
class THttpResponseTest extends PHPUnit_Framework_TestCase {
-
+
public static $app=null;
public function setUp () {
if (self::$app===null) self::$app=new TApplication(dirname(__FILE__).'/app');
ob_start();
}
-
+
public function tearDown () {
ob_end_flush();
}
-
+
public function testInit() {
$response=new THttpResponse ();
$response->init (null);
@@ -43,7 +43,7 @@ class THttpResponseTest extends PHPUnit_Framework_TestCase {
$response->setCacheControl('invalid');
self::fail ('Expected TInvalidDataValueException not thrown');
} catch (TInvalidDataValueException $e) {}
-
+
}
public function testSetContentType() {
@@ -62,7 +62,7 @@ class THttpResponseTest extends PHPUnit_Framework_TestCase {
self::assertEquals('UTF-8', $response->getCharset());
$response->setCharset ('ISO8859-1');
self::assertEquals('ISO8859-1', $response->getCharset());
-
+
}
public function testSetBufferOutput() {
@@ -101,17 +101,17 @@ class THttpResponseTest extends PHPUnit_Framework_TestCase {
}
public function testWriteFile() {
-
+
// Don't know how to test headers :(( ...
throw new PHPUnit_Framework_IncompleteTestError();
-
+
$response=new THttpResponse ();
$response->setBufferOutput(true);
// Suppress warning with headers
$response->writeFile(dirname(__FILE__).'/data/aTarFile.md5', null, 'text/plain', array ('Pragma: public', 'Expires: 0'));
-
+
self::assertContains('4b1ecb0b243918a8bbfbb4515937be98 aTarFile.tar', ob_get_clean());
-
+
}
public function testRedirect() {
@@ -157,5 +157,4 @@ class THttpResponseTest extends PHPUnit_Framework_TestCase {
public function testCreateHtmlWriter() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/THttpSessionTest.php b/tests/unit/Web/THttpSessionTest.php
index 7de0f8a5..aca83077 100644
--- a/tests/unit/Web/THttpSessionTest.php
+++ b/tests/unit/Web/THttpSessionTest.php
@@ -110,5 +110,4 @@ class THttpSessionTest extends PHPUnit_Framework_TestCase {
public function testOffsetUnset() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/THttpUtilityTest.php b/tests/unit/Web/THttpUtilityTest.php
index 85fcf7f4..7f4e6705 100644
--- a/tests/unit/Web/THttpUtilityTest.php
+++ b/tests/unit/Web/THttpUtilityTest.php
@@ -18,5 +18,4 @@ class THttpUtilityTest extends PHPUnit_Framework_TestCase {
$html = THttpUtility::htmlDecode('<tag key="value">');
self::assertEquals('<tag key="value">', $html);
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/TUriTest.php b/tests/unit/Web/TUriTest.php
index a8c65b9e..b610cd1b 100644
--- a/tests/unit/Web/TUriTest.php
+++ b/tests/unit/Web/TUriTest.php
@@ -6,17 +6,17 @@ Prado::using('System.Web.THttpRequest');
* @package System.Web
*/
class TUriTest extends PHPUnit_Framework_TestCase {
-
+
const URISTR='http://login:p@ssw0rd:compl3x@www.pradosoft.com:80/demos/quickstart/index.php?page=test&param1=test2#anchor';
-
+
public function setUp () {
$this->uri=new TUri(self::URISTR);
}
-
+
public function tearDown() {
$this->uri=null;
}
-
+
public function testConstruct() {
$url="http://www.pradosoft.com/";
$uri=new TUri ($url);
@@ -27,7 +27,7 @@ class TUriTest extends PHPUnit_Framework_TestCase {
$url=new TUri($url);
self::fail ('exception not raised with an invalid URL');
} catch (TInvalidDataValueException $e) {
-
+
}
}
@@ -66,5 +66,4 @@ class TUriTest extends PHPUnit_Framework_TestCase {
public function testGetFragment() {
self::assertEquals('anchor', $this->uri->getFragment());
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/ActiveControls/AllTests.php b/tests/unit/Web/UI/ActiveControls/AllTests.php
index ef2dfb91..68989996 100644
--- a/tests/unit/Web/UI/ActiveControls/AllTests.php
+++ b/tests/unit/Web/UI/ActiveControls/AllTests.php
@@ -11,11 +11,11 @@ class Web_UI_ActiveControls_AllTests {
public static function main() {
PHPUnit_TextUI_TestRunner::run(self::suite());
}
-
+
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('System.Web.UI.ActiveControls');
-
- $suite->addTestSuite('TActiveHiddenFieldTest');
+
+ $suite->addTestSuite('TActiveHiddenFieldTest');
return $suite;
}
}
@@ -23,4 +23,3 @@ class Web_UI_ActiveControls_AllTests {
if(PHPUnit_MAIN_METHOD == 'Web_UI_ActiveControls_AllTests::main') {
Web_UI_ActiveControls_AllTests::main();
}
-?>
diff --git a/tests/unit/Web/UI/ActiveControls/TActiveHiddenFieldTest.php b/tests/unit/Web/UI/ActiveControls/TActiveHiddenFieldTest.php
index 58821747..6e80bd12 100644
--- a/tests/unit/Web/UI/ActiveControls/TActiveHiddenFieldTest.php
+++ b/tests/unit/Web/UI/ActiveControls/TActiveHiddenFieldTest.php
@@ -14,5 +14,3 @@ class TActiveHiddenFieldTest extends PHPUnit_Framework_TestCase {
$this->assertEquals('Test', $field->getValue());
}
}
-
-?> \ No newline at end of file
diff --git a/tests/unit/Web/UI/AllTests.php b/tests/unit/Web/UI/AllTests.php
index 71b088e4..6885c337 100644
--- a/tests/unit/Web/UI/AllTests.php
+++ b/tests/unit/Web/UI/AllTests.php
@@ -23,10 +23,10 @@ class Web_UI_AllTests {
public static function main() {
PHPUnit_TextUI_TestRunner::run(self::suite());
}
-
+
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('System.Web.UI');
-
+
$suite->addTestSuite('TClientScriptManagerTest');
$suite->addTestSuite('TControlAdapterTest');
$suite->addTestSuite('TControlTest');
@@ -40,7 +40,7 @@ class Web_UI_AllTests {
$suite->addTestSuite('THtmlWriterTest');
$suite->addTestSuite('TPageStatePersisterTest');
$suite->addTestSuite('TSessionPageStatePersisterTest');
-
+
return $suite;
}
}
@@ -48,4 +48,3 @@ class Web_UI_AllTests {
if(PHPUnit_MAIN_METHOD == 'Web_UI_AllTests::main') {
Web_UI_AllTests::main();
}
-?>
diff --git a/tests/unit/Web/UI/TClientScriptManagerTest.php b/tests/unit/Web/UI/TClientScriptManagerTest.php
index ea360f91..efce0009 100644
--- a/tests/unit/Web/UI/TClientScriptManagerTest.php
+++ b/tests/unit/Web/UI/TClientScriptManagerTest.php
@@ -144,5 +144,4 @@ class TClientScriptManagerTest extends PHPUnit_Framework_TestCase {
throw new PHPUnit_Framework_IncompleteTestError();
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/TControlAdapterTest.php b/tests/unit/Web/UI/TControlAdapterTest.php
index 2a173fd8..ff687cc8 100644
--- a/tests/unit/Web/UI/TControlAdapterTest.php
+++ b/tests/unit/Web/UI/TControlAdapterTest.php
@@ -15,46 +15,45 @@ class TControlAdapterTest extends PHPUnit_Framework_TestCase {
public function testGetControl() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetPage() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testCreateChildControls() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testLoadState() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSaveState() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnInit() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnLoad() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnPreRender() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnUnload() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testRender() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testRenderChildren() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/TControlTest.php b/tests/unit/Web/UI/TControlTest.php
index 670926be..b6741167 100644
--- a/tests/unit/Web/UI/TControlTest.php
+++ b/tests/unit/Web/UI/TControlTest.php
@@ -15,266 +15,265 @@ class TControlTest extends PHPUnit_Framework_TestCase {
public function test__get() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetHasAdapter() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetAdapter() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetParent() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetNamingContainer() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetPage() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetTemplateControl() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetSourceTemplateControl() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetControlStage() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetID() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetUniqueID() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testFocus() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetClientID() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetSkinID() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetEnableTheming() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetCustomData() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetHasControls() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetControls() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetVisible() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetEnabled() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetHasAttributes() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetAttributes() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testHasAttribute() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetAttribute() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testRemoveAttribute() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetEnableViewState() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetControlState() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testTrackViewState() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetViewState() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testClearViewState() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testBindProperty() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testUnbindProperty() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testAutoBindProperty() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testDataBind() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testEnsureChildControls() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testCreateChildControls() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testFindControl() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testFindControlsByType() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testFindControlsByID() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testClearNamingContainer() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testRegisterObject() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testUnregisterObject() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testIsObjectRegistered() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetHasChildInitialized() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetHasInitialized() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetHasLoadedPostData() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetHasLoaded() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetHasPreRendered() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetRegisteredObject() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetAllowChildControls() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testAddParsedObject() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testAddedControl() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testRemovedControl() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnInit() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnLoad() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnDataBinding() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnUnload() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnPreRender() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testBubbleEvent() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testBroadcastEvent() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testRenderControl() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testRender() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testRenderChildren() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSaveState() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testLoadState() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testApplyStyleSheetSkin() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/TFormTest.php b/tests/unit/Web/UI/TFormTest.php
index 74cbdb59..7fb6d2b7 100644
--- a/tests/unit/Web/UI/TFormTest.php
+++ b/tests/unit/Web/UI/TFormTest.php
@@ -15,22 +15,21 @@ class TFormTest extends PHPUnit_Framework_TestCase {
public function testRender() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetDefaultButton() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetMethod() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetEnctype() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetName() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/THtmlWriterTest.php b/tests/unit/Web/UI/THtmlWriterTest.php
index 080e2e26..cf3b27e3 100644
--- a/tests/unit/Web/UI/THtmlWriterTest.php
+++ b/tests/unit/Web/UI/THtmlWriterTest.php
@@ -31,7 +31,7 @@ class TestWriter extends TComponent implements ITextWriter
{
$this->write($str."\n");
}
-
+
// Accessors to get value of private vars during tests
public function getFlushedContent() { return $this->_flushedContent; }
public function getStr() { return $this->_str; }
@@ -77,7 +77,7 @@ class THtmlWriterTest extends PHPUnit_Framework_TestCase {
$writer->addAttribute('value','Prado & Cie');
$result=self::readAttribute($writer, '_attributes');
self::assertEquals('text',$result['type']);
- self::assertEquals(THttpUtility::htmlEncode('Prado & Cie'), $result['value']);
+ self::assertEquals(THttpUtility::htmlEncode('Prado & Cie'), $result['value']);
}
public function testRemoveAttribute() {
@@ -129,21 +129,21 @@ class THtmlWriterTest extends PHPUnit_Framework_TestCase {
$writer=new THtmlWriter(self::$output);
$writer->write('Some Text');;
self::assertEquals('Some Text', self::$output->flush());
-
+
}
public function testWriteLine() {
$writer=new THtmlWriter(self::$output);
$writer->writeLine('Some Text');;
self::assertEquals("Some Text\n", self::$output->flush());
-
+
}
public function testWriteBreak() {
$writer=new THtmlWriter(self::$output);
$writer->writeBreak();
self::assertEquals("<br/>", self::$output->flush());
-
+
}
public function testRenderBeginTag() {
@@ -163,5 +163,4 @@ class THtmlWriterTest extends PHPUnit_Framework_TestCase {
self::assertEquals('<div>Div Content</div>', self::$output->flush());
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/TPageStatePersisterTest.php b/tests/unit/Web/UI/TPageStatePersisterTest.php
index 2734b142..8ee1cfc9 100644
--- a/tests/unit/Web/UI/TPageStatePersisterTest.php
+++ b/tests/unit/Web/UI/TPageStatePersisterTest.php
@@ -7,18 +7,17 @@ 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
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/TPageTest.php b/tests/unit/Web/UI/TPageTest.php
index d6f689e9..c1593816 100644
--- a/tests/unit/Web/UI/TPageTest.php
+++ b/tests/unit/Web/UI/TPageTest.php
@@ -15,181 +15,172 @@ class TPageTest extends PHPUnit_Framework_TestCase {
public function testRun() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetCallbackClient() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetCallbackEventTarget() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetCallbackEventParameter() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
- public function testRegisterPostDataLoader() {
- throw new PHPUnit_Framework_IncompleteTestError();
- }
-
- public function testGetPostDataLoaders() {
- throw new PHPUnit_Framework_IncompleteTestError();
- }
-
+
public function testSetAndGetForm() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetValidators() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testValidate() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetIsValid() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetTheme() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetStyleSheetTheme() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testApplyControlSkin() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testApplyControlStyleSheet() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetClientScript() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnPreInit() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnInitComplete() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnPreLoad() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnLoadComplete() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnPreRenderComplete() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testOnSaveStateComplete() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetIsPostBack() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetIsCallback() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSaveState() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testLoadState() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testRegisterRequiresPostData() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetPostBackEventTarget() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetPostBackEventParameter() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetIsLoadingPostData() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testEnsureRenderInForm() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testBeginFormRender() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testEndFormRender() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetFocus() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetClientSupportsJavaScript() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetHead() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetTitle() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetClientState() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetRequestClientState() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetStatePersisterClass() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetStatePersister() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetEnableStateValidation() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetEnableStateEncryption() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testSetAndGetPagePath() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testRegisterCachingAction() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetCachingStack() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-}
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/TSessionPageStatePersisterTest.php b/tests/unit/Web/UI/TSessionPageStatePersisterTest.php
index b8758b30..9153ad42 100644
--- a/tests/unit/Web/UI/TSessionPageStatePersisterTest.php
+++ b/tests/unit/Web/UI/TSessionPageStatePersisterTest.php
@@ -7,22 +7,21 @@ 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
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/TTemplateControlTest.php b/tests/unit/Web/UI/TTemplateControlTest.php
index 97ea8c1d..7276a2b0 100644
--- a/tests/unit/Web/UI/TTemplateControlTest.php
+++ b/tests/unit/Web/UI/TTemplateControlTest.php
@@ -15,34 +15,33 @@ class TTemplateControlTest extends PHPUnit_Framework_TestCase {
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
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/TTemplateManagerTest.php b/tests/unit/Web/UI/TTemplateManagerTest.php
index 46c17538..dfe452bf 100644
--- a/tests/unit/Web/UI/TTemplateManagerTest.php
+++ b/tests/unit/Web/UI/TTemplateManagerTest.php
@@ -7,18 +7,17 @@ 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
+
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/TTemplateTest.php b/tests/unit/Web/UI/TTemplateTest.php
index 2bb6599b..2d802094 100644
--- a/tests/unit/Web/UI/TTemplateTest.php
+++ b/tests/unit/Web/UI/TTemplateTest.php
@@ -7,42 +7,41 @@ 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
+
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/TThemeManagerTest.php b/tests/unit/Web/UI/TThemeManagerTest.php
index 1a514d2b..028b222a 100644
--- a/tests/unit/Web/UI/TThemeManagerTest.php
+++ b/tests/unit/Web/UI/TThemeManagerTest.php
@@ -7,26 +7,25 @@ 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
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/TThemeTest.php b/tests/unit/Web/UI/TThemeTest.php
index e7fa376d..aeeeee65 100644
--- a/tests/unit/Web/UI/TThemeTest.php
+++ b/tests/unit/Web/UI/TThemeTest.php
@@ -7,34 +7,33 @@ 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
+} \ No newline at end of file
diff --git a/tests/unit/Web/UI/WebControls/AllTests.php b/tests/unit/Web/UI/WebControls/AllTests.php
index 7d0b1632..5ffa45a2 100644
--- a/tests/unit/Web/UI/WebControls/AllTests.php
+++ b/tests/unit/Web/UI/WebControls/AllTests.php
@@ -14,15 +14,15 @@ class Web_UI_WebControls_AllTests {
public static function main() {
PHPUnit_TextUI_TestRunner::run(self::suite());
}
-
+
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('System.Web.UI.WebControls');
-
+
$suite->addTestSuite('TDropDownListTest');
$suite->addTestSuite('TLabelTest');
$suite->addTestSuite('TRequiredFieldValidatorTest');
$suite->addTestSuite('TXmlTransformTest');
-
+
return $suite;
}
}
@@ -30,4 +30,3 @@ class Web_UI_WebControls_AllTests {
if(PHPUnit_MAIN_METHOD == 'Web_UI_WebControls_AllTests::main') {
Web_UI_WebControls_AllTests::main();
}
-?>
diff --git a/tests/unit/Web/UI/WebControls/TDropDownListTest.php b/tests/unit/Web/UI/WebControls/TDropDownListTest.php
index 503466fe..d27ebb9c 100644
--- a/tests/unit/Web/UI/WebControls/TDropDownListTest.php
+++ b/tests/unit/Web/UI/WebControls/TDropDownListTest.php
@@ -27,4 +27,3 @@ class TDropDownListTest extends PHPUnit_Framework_TestCase {
}
}
-?>
diff --git a/tests/unit/Web/UI/WebControls/TLabelTest.php b/tests/unit/Web/UI/WebControls/TLabelTest.php
index 0e5577d5..88d8aec8 100644
--- a/tests/unit/Web/UI/WebControls/TLabelTest.php
+++ b/tests/unit/Web/UI/WebControls/TLabelTest.php
@@ -15,5 +15,3 @@ class TLabelTest extends PHPUnit_Framework_TestCase {
$this->assertEquals('Test', $label->getText());
}
}
-
-?> \ No newline at end of file
diff --git a/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php b/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php
index 894c3899..43ed2c9d 100644
--- a/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php
+++ b/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php
@@ -19,5 +19,3 @@ class TRequiredFieldValidatorTest extends PHPUnit_Framework_TestCase {
$this->assertEquals('', $value);
}
}
-
-?> \ No newline at end of file
diff --git a/tests/unit/Web/UI/WebControls/TXmlTransformTest.php b/tests/unit/Web/UI/WebControls/TXmlTransformTest.php
index 6c6d9456..f93e9897 100644
--- a/tests/unit/Web/UI/WebControls/TXmlTransformTest.php
+++ b/tests/unit/Web/UI/WebControls/TXmlTransformTest.php
@@ -51,7 +51,7 @@ class TXmlTransformTest extends PHPUnit_Framework_TestCase {
$transform->setTransformContent($expected);
$this->assertEquals($expected, $transform->getTransformContent());
}
-
+
public function testSetTransformPathAsFile() {
$expected = $this->transformPath;
$transform = new TXmlTransform();
@@ -120,10 +120,9 @@ class TXmlTransformTest extends PHPUnit_Framework_TestCase {
$actual = $textWriter->flush();
self::assertEquals($expected, $actual);
}
-
+
public function testRenderWithBodyAsDocumentAndTransformPath() {
throw new PHPUnit_Framework_IncompleteTestError();
}
}
-?>