summaryrefslogtreecommitdiff
path: root/tests/UnitTests/framework/utApplication.php
diff options
context:
space:
mode:
authorxue <>2005-11-10 12:47:19 +0000
committerxue <>2005-11-10 12:47:19 +0000
commit55c4ac1bfe565f1ca7f537fdd8b7a201be28e581 (patch)
treea0599d5e36fdbb3f1e169ae56bab7d529597e3eb /tests/UnitTests/framework/utApplication.php
Initial import of prado framework
Diffstat (limited to 'tests/UnitTests/framework/utApplication.php')
-rw-r--r--tests/UnitTests/framework/utApplication.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/UnitTests/framework/utApplication.php b/tests/UnitTests/framework/utApplication.php
new file mode 100644
index 00000000..603f9fc3
--- /dev/null
+++ b/tests/UnitTests/framework/utApplication.php
@@ -0,0 +1,25 @@
+<?php
+
+require_once(dirname(__FILE__).'/common.php');
+require_once(FRAMEWORK_DIR.'/TApplication.php');
+
+class utApplication extends UnitTestCase
+{
+ public function testCreateApplication()
+ {
+ $dir=getcwd();
+ chdir(dirname(__FILE__));
+ $application=new TApplication(dirname(__FILE__).'/TestSystem/protected/application.xml');
+ try
+ {
+ new TApplication(dirname(__FILE__).'/TestSystem/protected/application.xml');
+ }
+ catch(TInvalidOperationException $e)
+ {
+ $this->pass();
+ }
+ chdir($dir);
+ }
+}
+
+?> \ No newline at end of file