summaryrefslogtreecommitdiff
path: root/framework/pradolite.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/pradolite.php')
-rw-r--r--framework/pradolite.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/pradolite.php b/framework/pradolite.php
index f9ea93d3..af40799f 100644
--- a/framework/pradolite.php
+++ b/framework/pradolite.php
@@ -1,7 +1,7 @@
<?php
/**
* File Name: pradolite.php
- * Last Update: 2013/09/12 10:36:21
+ * Last Update: 2013/09/13 10:37:17
* Generated By: buildscripts/phpbuilder/build.php
*
* This file is used in lieu of prado.php to boost PRADO application performance.
@@ -69,7 +69,7 @@ class PradoBase
}
public static function setApplication($application)
{
- if(self::$_application!==null)
+ if(self::$_application!==null && !defined('PRADO_TEST_RUN'))
throw new TInvalidOperationException('prado_application_singleton_required');
self::$_application=$application;
}
@@ -197,7 +197,7 @@ class PradoBase
}
public static function setPathOfAlias($alias,$path)
{
- if(isset(self::$_aliases[$alias]))
+ if(isset(self::$_aliases[$alias]) && !defined('PRADO_TEST_RUN'))
throw new TInvalidOperationException('prado_alias_redefined',$alias);
else if(($rp=realpath($path))!==false && is_dir($rp))
{