summaryrefslogtreecommitdiff
path: root/tests/UnitTests/framework/Data
diff options
context:
space:
mode:
authorwei <>2006-07-05 07:45:41 +0000
committerwei <>2006-07-05 07:45:41 +0000
commite7e7c7403b1ffffdf1a7a4bb9e1de752fe1c72db (patch)
tree08ef806c2e72a6d14367797c765d3fb8dfa0a1d6 /tests/UnitTests/framework/Data
parentdfa5aa5fbf11f89ce483c58016465ddc3921f082 (diff)
clean up tests
Diffstat (limited to 'tests/UnitTests/framework/Data')
-rw-r--r--tests/UnitTests/framework/Data/CacheTestCase.php98
-rw-r--r--tests/UnitTests/framework/Data/test.dbbin4096 -> 0 bytes
-rw-r--r--tests/UnitTests/framework/Data/utAPCCache.php45
-rw-r--r--tests/UnitTests/framework/Data/utDateTimeSimpleFormatter.php81
-rw-r--r--tests/UnitTests/framework/Data/utMemCache.php66
-rw-r--r--tests/UnitTests/framework/Data/utSqliteCache.php59
-rw-r--r--tests/UnitTests/framework/Data/utXmlDocument.php82
-rw-r--r--tests/UnitTests/framework/Data/xml/data1.xml45
-rw-r--r--tests/UnitTests/framework/Data/xml/data1.xml.out41
-rw-r--r--tests/UnitTests/framework/Data/xml/data2.xml41
-rw-r--r--tests/UnitTests/framework/Data/xml/data2.xml.out40
-rw-r--r--tests/UnitTests/framework/Data/xml/data3.xml46
-rw-r--r--tests/UnitTests/framework/Data/xml/data3.xml.out45
13 files changed, 0 insertions, 689 deletions
diff --git a/tests/UnitTests/framework/Data/CacheTestCase.php b/tests/UnitTests/framework/Data/CacheTestCase.php
deleted file mode 100644
index 68a7b067..00000000
--- a/tests/UnitTests/framework/Data/CacheTestCase.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-
-require_once(dirname(__FILE__).'/../common.php');
-
-class CacheTestCase extends UnitTestCase
-{
- private $_cache;
-
- public function getCache()
- {
- return $this->_cache;
- }
-
- public function setCache($cache)
- {
- $this->_cache=$cache;
- }
-
- public function basicOperations()
- {
- $object=new TComponent;
- $number=12345;
- $string='12345\'"';
- $array=array('123'=>123,'abc'=>'def');
-
- // test set (first time)
- $this->assertFalse($this->_cache->get('object'));
- $this->assertTrue($this->_cache->set('object',$object));
- $this->assertTrue($this->_cache->get('object') instanceof TComponent);
- $this->assertFalse($this->_cache->get('number'));
- $this->assertTrue($this->_cache->set('number',$number));
- $this->assertTrue($this->_cache->get('number')===$number);
- $this->assertFalse($this->_cache->get('string'));
- $this->assertTrue($this->_cache->set('string',$string));
- $this->assertTrue($this->_cache->get('string')===$string);
- $this->assertFalse($this->_cache->get('array'));
- $this->assertTrue($this->_cache->set('array',$array));
- $this->assertTrue($this->_cache->get('array')===$array);
-
- // test set (second time)
- $this->assertTrue($this->_cache->set('object',$array));
- $this->assertTrue($this->_cache->get('object')===$array);
-
- // test delete
- $this->assertTrue($this->_cache->delete('object'));
- $this->assertFalse($this->_cache->get('object'));
- $this->assertTrue($this->_cache->delete('number'));
- $this->assertFalse($this->_cache->get('number'));
- $this->assertTrue($this->_cache->delete('string'));
- $this->assertFalse($this->_cache->get('string'));
- $this->assertTrue($this->_cache->delete('array'));
- $this->assertFalse($this->_cache->get('array'));
-
- // test add (first time)
- $this->assertFalse($this->_cache->get('object'));
- $this->assertTrue($this->_cache->add('object',$object));
- $this->assertTrue($this->_cache->get('object') instanceof TComponent);
- $this->assertFalse($this->_cache->get('number'));
- $this->assertTrue($this->_cache->add('number',$number));
- $this->assertTrue($this->_cache->get('number')===$number);
- $this->assertFalse($this->_cache->get('string'));
- $this->assertTrue($this->_cache->add('string',$string));
- $this->assertTrue($this->_cache->get('string')===$string);
- $this->assertFalse($this->_cache->get('array'));
- $this->assertTrue($this->_cache->add('array',$array));
- $this->assertTrue($this->_cache->get('array')===$array);
-
- // test add (second time)
- $this->assertFalse($this->_cache->add('object',$array));
- $this->assertTrue($this->_cache->get('object') instanceof TComponent);
-
- // test replace
- $this->assertTrue($this->_cache->replace('object',$array));
- $this->assertTrue($this->_cache->get('object')===$array);
- $this->assertFalse($this->_cache->replace('object2',$array));
- $this->assertFalse($this->_cache->get('object2'));
-
- // test flush
- $this->assertTrue($this->_cache->set('number',$number));
- $this->assertTrue($this->_cache->get('number')===$number);
- $this->assertTrue($this->_cache->flush());
- $this->assertFalse($this->_cache->get('number'));
-
- // test expiring
- // set a value with 5sec valid time
- $this->_cache->set('expiring',123,3);
- $this->assertTrue($this->_cache->get('expiring')===123);
- $this->_cache->set('nonexpiring',456);
- $this->assertTrue($this->_cache->get('nonexpiring')===456);
-
- // wait 6sec to see if the value still exists
- sleep(4);
- $this->assertFalse($this->_cache->get('expiring'));
- $this->assertTrue($this->_cache->get('nonexpiring')===456);
- }
-}
-
-?> \ No newline at end of file
diff --git a/tests/UnitTests/framework/Data/test.db b/tests/UnitTests/framework/Data/test.db
deleted file mode 100644
index fcf08f16..00000000
--- a/tests/UnitTests/framework/Data/test.db
+++ /dev/null
Binary files differ
diff --git a/tests/UnitTests/framework/Data/utAPCCache.php b/tests/UnitTests/framework/Data/utAPCCache.php
deleted file mode 100644
index 48458c27..00000000
--- a/tests/UnitTests/framework/Data/utAPCCache.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-require_once(dirname(__FILE__).'/../common.php');
-require_once(dirname(__FILE__).'/CacheTestCase.php');
-Prado::using('System.Caching.TAPCCache');
-
-class utAPCCache extends CacheTestCase
-{
-
- public function testInit()
- {
- if(!extension_loaded('apc'))
- {
- $this->fail('TAPCCache is not tested. PHP extension "apc" is required by TAPCCache.');
- return;
- }
- //compatibility test as this time of writing 01/02/2006 (dd//mm//yyyy)
- $apc_default_ini = $apc_default=ini_get('apc.cache_by_default');
- if ($apc_default=='Off' || $apc_default='off')
- $apc_default=0;
- elseif($apc_default=='On' || $apc_default='on')
- $apc_default=1;
- $apc_default=(boolean)$apc_default;
- if($apc_default) {
- $this->fail('You have to disable apc.cache_by_default in your php.ini : you have apc.cache_by_default='.$apc_default_ini.' but currently prado won\'t execute without errors with APC caching all prado php files.');
- return;
- }
- }
-
- public function testBasicOperations()
- {
- if(!extension_loaded('apc'))
- {
- $this->fail('TAPCCache is not tested. PHP extension "apc" is required by TAPCCache.');
- return;
- }
- $cache=new TAPCCache;
- $cache->init(null);
- $this->setCache($cache);
- $this->basicOperations();
- $this->setCache(null);
- }
-}
-
-?> \ No newline at end of file
diff --git a/tests/UnitTests/framework/Data/utDateTimeSimpleFormatter.php b/tests/UnitTests/framework/Data/utDateTimeSimpleFormatter.php
deleted file mode 100644
index 9c505481..00000000
--- a/tests/UnitTests/framework/Data/utDateTimeSimpleFormatter.php
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-
-// NOTE: This file must be saved with charset GB2312
-require_once(dirname(__FILE__).'/../common.php');
-
-Prado::using('System.Util.TDateTimeSimpleFormatter');
-
-class utDateTimeSimpleFormatter extends UnitTestCase
-{
- function testFormatting()
- {
- $time = mktime(0,0,0,12,30,2005);
- $pattern = "dd-MM-yyyy";
- $expect = '30-12-2005';
-
- $formatter = new TDateTimeSimpleFormatter($pattern);
- $this->assertEqual($expect, $formatter->format($time));
-
- $time = mktime(0,0,0,5,6,2005);
- $pattern = "d-M-yy";
- $expect = "6-5-05";
-
- $formatter->setPattern($pattern);
- $this->assertEqual($expect, $formatter->format($time));
-
- $pattern = "dd-MM-yy";
- $expect = "06-05-05";
-
- $formatter->setPattern($pattern);
- $this->assertEqual($expect, $formatter->format($time));
-
- $pattern = "yyyy年MM月dd日";
- $expect = "2005年05月06日";
-
- $formatter = new TDateTimeSimpleFormatter($pattern, 'GB2312');
- $this->assertEqual($expect, $formatter->format($time));
-
- $pattern = "MM/dd/yyyy";
- $expect = "05/06/2005";
-
- $formatter = new TDateTimeSimpleFormatter($pattern, 'UTF-8');
- $this->assertEqual($expect, $formatter->format($time));
-
- }
-
- function testParsing()
- {
- $pattern = "yyyy年MM月dd日";
- $value = "2005年05月06日";
- $expect = mktime(0,0,0,5,6,2005);
-
- $formatter = new TDateTimeSimpleFormatter($pattern, 'GB2312');
- $this->assertEqual($expect, $formatter->parse($value));
-
- $pattern = "dd-MM-yy";
- $value= "06-05-05";
-
- $formatter = new TDateTimeSimpleFormatter($pattern);
- $this->assertEqual($expect, $formatter->parse($value));
-
- $pattern = "d-M-yy";
- $value = "6-5-05";
- $formatter = new TDateTimeSimpleFormatter($pattern);
- $this->assertEqual($expect, $formatter->parse($value));
-
- $pattern = "MM/dd/yyyy";
- $value = "05/06/2005";
- $formatter = new TDateTimeSimpleFormatter($pattern);
- $this->assertEqual($expect, $formatter->parse($value));
-
-
- $pattern = "dd-MM-yyyy";
- $value = '30-12-2005';
- $expect = mktime(0,0,0,12,30,2005);
-
- $formatter = new TDateTimeSimpleFormatter($pattern);
- $this->assertEqual($expect, $formatter->parse($value));
- }
-}
-
-?> \ No newline at end of file
diff --git a/tests/UnitTests/framework/Data/utMemCache.php b/tests/UnitTests/framework/Data/utMemCache.php
deleted file mode 100644
index cbe9bdad..00000000
--- a/tests/UnitTests/framework/Data/utMemCache.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-
-require_once(dirname(__FILE__).'/../common.php');
-require_once(dirname(__FILE__).'/CacheTestCase.php');
-Prado::using('System.Caching.TMemCache');
-
-class utMemCache extends UnitTestCase
-{
- private $_prefix='';
- private $_server='localhost';
- private $_port=11211;
-
- public function testInit()
- {
- if(!extension_loaded('memcache'))
- {
- $this->fail('TMemCache is not tested. PHP extension "memcache" is required by TMemCache.');
- return;
- }
- $cache=new TMemCache;
-
- $this->assertTrue($cache->getHost()==='localhost');
- $cache->setHost('localhost2');
- $this->assertTrue($cache->getHost()==='localhost2');
-
- $this->assertTrue($cache->getPort()===11211);
- $cache->setPort(1000);
- $this->assertTrue($cache->getPort()===1000);
-
- $cache->init(null,null);
- try
- {
- $cache->setHost('newhost');
- $this->fail('exception not raised when setting Server after init');
- }
- catch(TInvalidOperationException $e)
- {
- $this->pass();
- }
- try
- {
- $cache->setPort(10000);
- $this->fail('exception not raised when setting Port after init');
- }
- catch(TInvalidOperationException $e)
- {
- $this->pass();
- }
- }
-
- public function testBasicOperations()
- {
- if(!extension_loaded('memcache'))
- {
- $this->fail('TMemCache is not tested. PHP extension "memcache" is required by TMemCache.');
- return;
- }
- $cache=new TMemCache;
- $cache->init(null,null);
- $this->setCache($cache);
- $this->basicOperations();
- $this->setCache(null);
- }
-}
-
-?> \ No newline at end of file
diff --git a/tests/UnitTests/framework/Data/utSqliteCache.php b/tests/UnitTests/framework/Data/utSqliteCache.php
deleted file mode 100644
index eded351f..00000000
--- a/tests/UnitTests/framework/Data/utSqliteCache.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-require_once(dirname(__FILE__).'/../common.php');
-require_once(dirname(__FILE__).'/CacheTestCase.php');
-Prado::using('System.Caching.TSqliteCache');
-
-class utSqliteCache extends CacheTestCase
-{
- private $dbFile;
-
- public function __construct()
- {
- parent::__construct();
- if(Prado::getPathOfAlias('utSqliteCache')===null)
- Prado::setPathOfAlias('utSqliteCache',dirname(__FILE__));
- $this->dbFile='utSqliteCache.test';
- }
-
- public function tearDown()
- {
- $file=Prado::getPathOfNamespace('utSqliteCache.test',TSqliteCache::DB_FILE_EXT);
- if(is_file($file))
- unlink($file);
- else
- $this->fail("Unable to clean up db file: '".$file."'.");
- }
-
- public function testInit()
- {
- $cache=new TSqliteCache;
-
- $this->assertTrue($cache->getDbFile()===null);
- $cache->setDbFile($this->dbFile);
- $this->assertTrue($cache->getDbFile()===$this->dbFile);
-
- $cache->init(null,null);
- try
- {
- $cache->setDbFile('newfile.db');
- $this->fail('exception not raised when setting DbFile after init');
- }
- catch(TInvalidOperationException $e)
- {
- $this->pass();
- }
- }
-
- public function testBasicOperations()
- {
- $cache=new TSqliteCache;
- $cache->setDbFile($this->dbFile);
- $cache->init(null,null);
- $this->setCache($cache);
- $this->basicOperations();
- $this->setCache(null);
- }
-}
-
-?> \ No newline at end of file
diff --git a/tests/UnitTests/framework/Data/utXmlDocument.php b/tests/UnitTests/framework/Data/utXmlDocument.php
deleted file mode 100644
index ec0e43c7..00000000
--- a/tests/UnitTests/framework/Data/utXmlDocument.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-require_once(dirname(__FILE__).'/../common.php');
-
-class utXmlDocument extends UnitTestCase
-{
- public function setUp()
- {
- }
-
- public function tearDown()
- {
- }
-
- public function testLoadAndSave()
- {
- $dir=dirname(__FILE__).'/xml';
-
- $doc=new TXmlDocument;
- try
- {
- $doc->loadFromFile('nonexisting.xml');
- $this->fail('exception not raised when openning a nonexistent file.');
- }
- catch(TIOException $e)
- {
- $this->pass();
- }
-
- $doc=new TXmlDocument;
- $this->assertFalse(@$doc->loadFromString('$12341'));
-
- // a regular XML file
- $doc=new TXmlDocument;
- $doc->loadFromFile($dir.'/data1.xml');
- $doc->saveToFile($dir.'/data1.xml.tmp');
- $this->assertTrue($this->compareFiles($dir.'/data1.xml.tmp',$dir.'/data1.xml.out'));
- @unlink($dir.'/data1.xml.tmp');
-
- // an XML file with Chinese characters
- $doc->loadFromFile($dir.'/data2.xml');
- $doc->saveToFile($dir.'/data2.xml.tmp');
- $this->assertTrue($this->compareFiles($dir.'/data2.xml.tmp',$dir.'/data2.xml.out'));
- @unlink($dir.'/data2.xml.tmp');
-
- // a typical Prado Application configuration file
- $doc=new TXmlDocument;
- $doc->loadFromFile($dir.'/data3.xml');
- $doc->saveToFile($dir.'/data3.xml.tmp');
- $this->assertTrue($this->compareFiles($dir.'/data3.xml.tmp',$dir.'/data3.xml.out'));
- @unlink($dir.'/data3.xml.tmp');
- }
-
- protected function compareFiles($file1,$file2)
- {
- return file_get_contents($file1)===file_get_contents($file2);
- }
-
- public function testAccessDomTree()
- {
- $dir=dirname(__FILE__).'/xml';
- $doc=new TXmlDocument;
- $doc->loadFromFile($dir.'/data1.xml');
- $this->assertTrue($doc->getVersion()==='1.0');
- $this->assertTrue($doc->getEncoding()==='utf-8');
- $this->assertTrue($doc->getElements()->getCount()===2);
- $this->assertTrue($doc->getElements()->itemAt(0)->getTagName()==='title');
- $this->assertTrue($doc->getElements()->itemAt(0)->getValue()==='My lists');
- $this->assertTrue($doc->getElements()->itemAt(1)->getTagName()==='chapter');
- $this->assertTrue($doc->getElements()->itemAt(1)->getAttribute('id')==='books');
- }
-
- public function testUpdateDomTree()
- {
- }
-
- public function testComposeDomTree()
- {
- }
-}
-
-?> \ No newline at end of file
diff --git a/tests/UnitTests/framework/Data/xml/data1.xml b/tests/UnitTests/framework/Data/xml/data1.xml
deleted file mode 100644
index d865680a..00000000
--- a/tests/UnitTests/framework/Data/xml/data1.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
- "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
-]>
-<book id="listing">
- <title>My lists</title>
- <chapter id="books">
- <title>My books</title>
- <para>
- <informaltable>
- <tgroup cols="4">
- <thead>
- <row>
- <entry>Title</entry>
- <entry>Author</entry>
- <entry>Language</entry>
- <entry>ISBN</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>The Grapes of Wrath</entry>
- <entry>John Steinbeck</entry>
- <entry>en</entry>
- <entry>0140186409</entry>
- </row>
- <row>
- <entry>The Pearl</entry>
- <entry>John Steinbeck</entry>
- <entry>en</entry>
- <entry>014017737X</entry>
- </row>
- <row>
- <entry>Samarcande</entry>
- <entry>Amine Maalouf</entry>
- <entry>fr</entry>
- <entry>2253051209</entry>
- </row>
- <!-- TODO: I have a lot of remaining books to add.. -->
- </tbody>
- </tgroup>
- </informaltable>
- </para>
- </chapter>
-</book>
diff --git a/tests/UnitTests/framework/Data/xml/data1.xml.out b/tests/UnitTests/framework/Data/xml/data1.xml.out
deleted file mode 100644
index de491e4c..00000000
--- a/tests/UnitTests/framework/Data/xml/data1.xml.out
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<book id="listing">
- <title>My lists</title>
- <chapter id="books">
- <title>My books</title>
- <para>
- <informaltable>
- <tgroup cols="4">
- <thead>
- <row>
- <entry>Title</entry>
- <entry>Author</entry>
- <entry>Language</entry>
- <entry>ISBN</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>The Grapes of Wrath</entry>
- <entry>John Steinbeck</entry>
- <entry>en</entry>
- <entry>0140186409</entry>
- </row>
- <row>
- <entry>The Pearl</entry>
- <entry>John Steinbeck</entry>
- <entry>en</entry>
- <entry>014017737X</entry>
- </row>
- <row>
- <entry>Samarcande</entry>
- <entry>Amine Maalouf</entry>
- <entry>fr</entry>
- <entry>2253051209</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- </para>
- </chapter>
-</book> \ No newline at end of file
diff --git a/tests/UnitTests/framework/Data/xml/data2.xml b/tests/UnitTests/framework/Data/xml/data2.xml
deleted file mode 100644
index 9231ef7b..00000000
--- a/tests/UnitTests/framework/Data/xml/data2.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-锘<?xml version="1.0" encoding="utf-8"?>
-<book id="listing" title="鎴戠殑涔﹀崟">
- <chapter id="books">
- <title>鎴戠殑涔</title>
- <para>
- <informaltable>
- <tgroup cols="4">
- <thead>
- <row>
- <entry>鏍囬</entry>
- <entry>浣滆</entry>
- <entry>璇█</entry>
- <entry>ISBN</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>The Grapes of Wrath</entry>
- <entry>John Steinbeck</entry>
- <entry>en</entry>
- <entry>0140186409</entry>
- </row>
- <row>
- <entry>The Pearl</entry>
- <entry>John Steinbeck</entry>
- <entry>en</entry>
- <entry>014017737X</entry>
- </row>
- <row>
- <entry>Samarcande</entry>
- <entry>Amine Maalouf</entry>
- <entry>fr</entry>
- <entry>2253051209</entry>
- </row>
- <!-- TODO: I have a lot of remaining books to add.. -->
- </tbody>
- </tgroup>
- </informaltable>
- </para>
- </chapter>
-</book>
diff --git a/tests/UnitTests/framework/Data/xml/data2.xml.out b/tests/UnitTests/framework/Data/xml/data2.xml.out
deleted file mode 100644
index d688884c..00000000
--- a/tests/UnitTests/framework/Data/xml/data2.xml.out
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<book id="listing" title="鎴戠殑涔﹀崟">
- <chapter id="books">
- <title>鎴戠殑涔</title>
- <para>
- <informaltable>
- <tgroup cols="4">
- <thead>
- <row>
- <entry>鏍囬</entry>
- <entry>浣滆</entry>
- <entry>璇█</entry>
- <entry>ISBN</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>The Grapes of Wrath</entry>
- <entry>John Steinbeck</entry>
- <entry>en</entry>
- <entry>0140186409</entry>
- </row>
- <row>
- <entry>The Pearl</entry>
- <entry>John Steinbeck</entry>
- <entry>en</entry>
- <entry>014017737X</entry>
- </row>
- <row>
- <entry>Samarcande</entry>
- <entry>Amine Maalouf</entry>
- <entry>fr</entry>
- <entry>2253051209</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- </para>
- </chapter>
-</book> \ No newline at end of file
diff --git a/tests/UnitTests/framework/Data/xml/data3.xml b/tests/UnitTests/framework/Data/xml/data3.xml
deleted file mode 100644
index 5eaece3b..00000000
--- a/tests/UnitTests/framework/Data/xml/data3.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0"?>
-<application id="test">
- <modules>
- <module id="request" />
- <module id="response" />
- <module id="cache" type="System.Modules.TSqliteCache"
- DbFile="protected/cache.db" />
- <module id="error">
- <case id="exception" handler="processException" />
- <default handler="processHttpError" />
- </module>
- </modules>
- <services default="page">
- <service id="page" BasePath="protected/pages">
- <modules>
- <module id="template" type="System.Modules.TTemplateManager" />
- <module id="session" type="System.Modules.TSession" />
- </modules>
- <pages default="home">
- <page id="home" type="HomePage" />
- <page id="about" type="AboutPage" />
- </pages>
- <location path="users">
- <security>
- <allow page="register,login" />
- <deny page="profile" user="?" />
- <allow page="admin" role="admin" />
- <deny page="admin" />
- </security>
- <pages>
- <page id="register" type="RegisterPage" />
- <page id="login" type="LoginPage" />
- <page id="admin" type="AdminPage" />
- <page id="profile" type="ProfilePage" />
- </pages>
- </location>
- <parameters>
- </parameters>
- </service>
- <service id="asset" type="System.Services.TAssetService" />
- </services>
- <parameters>
- <parameter id="AdminEmail">qiang.xue@gmail.com</parameter>
- <parameter id="NetShow" type="Demo.NetShow" Host="localhost" />
- </parameters>
-</application>
diff --git a/tests/UnitTests/framework/Data/xml/data3.xml.out b/tests/UnitTests/framework/Data/xml/data3.xml.out
deleted file mode 100644
index d46e65b9..00000000
--- a/tests/UnitTests/framework/Data/xml/data3.xml.out
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0"?>
-<application id="test">
- <modules>
- <module id="request" />
- <module id="response" />
- <module id="cache" type="System.Modules.TSqliteCache" DbFile="protected/cache.db" />
- <module id="error">
- <case id="exception" handler="processException" />
- <default handler="processHttpError" />
- </module>
- </modules>
- <services default="page">
- <service id="page" BasePath="protected/pages">
- <modules>
- <module id="template" type="System.Modules.TTemplateManager" />
- <module id="session" type="System.Modules.TSession" />
- </modules>
- <pages default="home">
- <page id="home" type="HomePage" />
- <page id="about" type="AboutPage" />
- </pages>
- <location path="users">
- <security>
- <allow page="register,login" />
- <deny page="profile" user="?" />
- <allow page="admin" role="admin" />
- <deny page="admin" />
- </security>
- <pages>
- <page id="register" type="RegisterPage" />
- <page id="login" type="LoginPage" />
- <page id="admin" type="AdminPage" />
- <page id="profile" type="ProfilePage" />
- </pages>
- </location>
- <parameters>
- </parameters>
- </service>
- <service id="asset" type="System.Services.TAssetService" />
- </services>
- <parameters>
- <parameter id="AdminEmail">qiang.xue@gmail.com</parameter>
- <parameter id="NetShow" type="Demo.NetShow" Host="localhost" />
- </parameters>
-</application> \ No newline at end of file