summaryrefslogtreecommitdiff
path: root/tests/UnitTests/framework/utApplication.php
blob: 603f9fc3bf5d9a74c9114d3eb79da4a1e1244b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
	}
}

?>