diff options
author | David <ottodavid@gmx.net> | 2015-08-10 06:42:01 +0200 |
---|---|---|
committer | David <ottodavid@gmx.net> | 2015-08-10 17:22:33 +0200 |
commit | 2bf1a517f3edc1bd43b8e3340f0f6fd31b1ba94a (patch) | |
tree | 285d7182be15299d8c0cdac1bd8aa1e397fa69d4 /tests/unit/Security | |
parent | 92ee7558c6b6dd2461b645cb1f19a81ef8c50db5 (diff) |
fix unit tests
Diffstat (limited to 'tests/unit/Security')
-rw-r--r-- | tests/unit/Security/TAuthManagerTest.php | 10 | ||||
-rw-r--r-- | tests/unit/Security/TAuthorizationRuleTest.php | 1 | ||||
-rw-r--r-- | tests/unit/Security/TSecurityManagerTest.php | 6 | ||||
-rw-r--r-- | tests/unit/Security/TUserManagerTest.php | 9 | ||||
-rw-r--r-- | tests/unit/Security/TUserTest.php | 8 |
5 files changed, 26 insertions, 8 deletions
diff --git a/tests/unit/Security/TAuthManagerTest.php b/tests/unit/Security/TAuthManagerTest.php index 3b8b9305..b61953e5 100644 --- a/tests/unit/Security/TAuthManagerTest.php +++ b/tests/unit/Security/TAuthManagerTest.php @@ -1,8 +1,12 @@ <?php -Prado::using('System.Security.TAuthManager'); -Prado::using('System.Security.TUserManager'); -Prado::using('System.Xml.TXmlDocument'); +use Prado\Exceptions\TConfigurationException; +use Prado\Exceptions\TInvalidOperationException; +use Prado\Security\TAuthManager; +use Prado\Security\TUserManager; +use Prado\TApplication; +use Prado\Xml\TXmlDocument; + /** * @package System.Security diff --git a/tests/unit/Security/TAuthorizationRuleTest.php b/tests/unit/Security/TAuthorizationRuleTest.php index 5bfa6c2c..8e8a3fde 100644 --- a/tests/unit/Security/TAuthorizationRuleTest.php +++ b/tests/unit/Security/TAuthorizationRuleTest.php @@ -1,6 +1,5 @@ <?php -Prado::using('System.Security.TAuthorizationRule'); /** * @package System.Security diff --git a/tests/unit/Security/TSecurityManagerTest.php b/tests/unit/Security/TSecurityManagerTest.php index 9c319a5a..29850f29 100644 --- a/tests/unit/Security/TSecurityManagerTest.php +++ b/tests/unit/Security/TSecurityManagerTest.php @@ -1,6 +1,10 @@ <?php -Prado::using('System.Security.TSecurityManager'); +use Prado\Exceptions\TInvalidDataValueException; +use Prado\Exceptions\TNotSupportedException; +use Prado\Security\TSecurityManager; +use Prado\TApplication; + /** * @package System.Security diff --git a/tests/unit/Security/TUserManagerTest.php b/tests/unit/Security/TUserManagerTest.php index 91b9d0c6..146e590b 100644 --- a/tests/unit/Security/TUserManagerTest.php +++ b/tests/unit/Security/TUserManagerTest.php @@ -1,6 +1,13 @@ <?php -Prado::using('System.Security.TUserManager'); +use Prado\Exceptions\TConfigurationException; +use Prado\Exceptions\TInvalidDataValueException; +use Prado\Exceptions\TInvalidOperationException; +use Prado\Prado; +use Prado\Security\TUserManager; +use Prado\TApplication; +use Prado\Xml\TXmlDocument; + /** * @package System.Security diff --git a/tests/unit/Security/TUserTest.php b/tests/unit/Security/TUserTest.php index 3692b97c..c707cb25 100644 --- a/tests/unit/Security/TUserTest.php +++ b/tests/unit/Security/TUserTest.php @@ -1,7 +1,11 @@ <?php -Prado::using('System.Security.TUser'); -Prado::using('System.Security.TUserManager'); +use Prado\Prado; +use Prado\Security\TUser; +use Prado\Security\TUserManager; +use Prado\TApplication; +use Prado\Xml\TXmlDocument; + /** * @package System.Security |