summaryrefslogtreecommitdiff
path: root/tests/UnitTests/framework/utApplication.php
diff options
context:
space:
mode:
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