summaryrefslogtreecommitdiff
path: root/framework/pradolite.php
diff options
context:
space:
mode:
authorCiro Mattia Gonano <ciromattia@gmail.com>2013-09-13 10:40:10 +0200
committerCiro Mattia Gonano <ciromattia@gmail.com>2013-09-13 10:40:10 +0200
commit40b06f3eff0c5fcc52b5473737f31094536e9bca (patch)
treeabc1fb12ffa03b52790e205d2f837df9806614bd /framework/pradolite.php
parent412a160afd73443c1d06f2828a5f792507fdf63e (diff)
Update to r3325
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))
{