summaryrefslogtreecommitdiff
path: root/tests/unit/Security
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/Security')
-rw-r--r--tests/unit/Security/TAuthManagerTest.php10
-rw-r--r--tests/unit/Security/TAuthorizationRuleTest.php1
-rw-r--r--tests/unit/Security/TSecurityManagerTest.php6
-rw-r--r--tests/unit/Security/TUserManagerTest.php9
-rw-r--r--tests/unit/Security/TUserTest.php8
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