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/Data | |
parent | 92ee7558c6b6dd2461b645cb1f19a81ef8c50db5 (diff) |
fix unit tests
Diffstat (limited to 'tests/unit/Data')
-rw-r--r-- | tests/unit/Data/DataGateway/TSqlCriteriaTest.php | 3 | ||||
-rw-r--r-- | tests/unit/Data/SqlMap/DataMapper/TPropertyAccessTest.php | 4 | ||||
-rw-r--r-- | tests/unit/Data/SqlMap/DynamicParameterTest.php | 7 | ||||
-rw-r--r-- | tests/unit/Data/TDbCommandTest.php | 6 | ||||
-rw-r--r-- | tests/unit/Data/TDbConnectionTest.php | 8 | ||||
-rw-r--r-- | tests/unit/Data/TDbDataReaderTest.php | 5 | ||||
-rw-r--r-- | tests/unit/Data/TDbTransactionTest.php | 4 |
7 files changed, 28 insertions, 9 deletions
diff --git a/tests/unit/Data/DataGateway/TSqlCriteriaTest.php b/tests/unit/Data/DataGateway/TSqlCriteriaTest.php index ce22ef1d..58796947 100644 --- a/tests/unit/Data/DataGateway/TSqlCriteriaTest.php +++ b/tests/unit/Data/DataGateway/TSqlCriteriaTest.php @@ -1,7 +1,8 @@ <?php -Prado::using('System.Data.DataGateway.TSqlCriteria'); +use Prado\Data\DataGateway\TSqlCriteria; + /** * @package System.Data.DataGateway diff --git a/tests/unit/Data/SqlMap/DataMapper/TPropertyAccessTest.php b/tests/unit/Data/SqlMap/DataMapper/TPropertyAccessTest.php index 3f5493c7..99118927 100644 --- a/tests/unit/Data/SqlMap/DataMapper/TPropertyAccessTest.php +++ b/tests/unit/Data/SqlMap/DataMapper/TPropertyAccessTest.php @@ -1,8 +1,8 @@ <?php -Prado::using('System.Data.SqlMap.DataMapper.TSqlMapException'); -Prado::using('System.Data.SqlMap.DataMapper.TPropertyAccess'); +use Prado\Data\SqlMap\DataMapper\TPropertyAccess; + /** * @package System.Data.SqlMap.DataMapper diff --git a/tests/unit/Data/SqlMap/DynamicParameterTest.php b/tests/unit/Data/SqlMap/DynamicParameterTest.php index 136111db..414f819f 100644 --- a/tests/unit/Data/SqlMap/DynamicParameterTest.php +++ b/tests/unit/Data/SqlMap/DynamicParameterTest.php @@ -1,8 +1,11 @@ <?php -Prado::using('System.Data.*'); -Prado::using('System.Data.SqlMap.*'); +use Prado\Data\SqlMap\TSqlMapManager; +use Prado\Data\TDbConnection; +use Prado\Prado; +use Prado\TApplication; + /** * @package System.Data.SqlMap diff --git a/tests/unit/Data/TDbCommandTest.php b/tests/unit/Data/TDbCommandTest.php index 87bbbf05..f9ae25b7 100644 --- a/tests/unit/Data/TDbCommandTest.php +++ b/tests/unit/Data/TDbCommandTest.php @@ -1,6 +1,10 @@ <?php -Prado::using('System.Data.*'); +use Prado\Data\TDbConnection; +use Prado\Data\TDbDataReader; +use Prado\Exceptions\TDbException; +use Prado\TApplication; + if(!defined('TEST_DB_FILE')) define('TEST_DB_FILE',dirname(__FILE__).'/db/test.db'); diff --git a/tests/unit/Data/TDbConnectionTest.php b/tests/unit/Data/TDbConnectionTest.php index 4b32300c..e6d47f39 100644 --- a/tests/unit/Data/TDbConnectionTest.php +++ b/tests/unit/Data/TDbConnectionTest.php @@ -1,6 +1,12 @@ <?php -Prado::using('System.Data.*'); +use Prado\Data\TDbColumnCaseMode; +use Prado\Data\TDbCommand; +use Prado\Data\TDbConnection; +use Prado\Data\TDbNullConversionMode; +use Prado\Exceptions\TDbException; +use Prado\TApplication; + if(!defined('TEST_DB_FILE')) define('TEST_DB_FILE',dirname(__FILE__).'/db/test.db'); diff --git a/tests/unit/Data/TDbDataReaderTest.php b/tests/unit/Data/TDbDataReaderTest.php index 2e31245e..67fc6f29 100644 --- a/tests/unit/Data/TDbDataReaderTest.php +++ b/tests/unit/Data/TDbDataReaderTest.php @@ -1,6 +1,9 @@ <?php -Prado::using('System.Data.*'); +use Prado\Data\TDbConnection; +use Prado\Exceptions\TDbException; +use Prado\TApplication; + if(!defined('TEST_DB_FILE')) define('TEST_DB_FILE',dirname(__FILE__).'/db/test.db'); diff --git a/tests/unit/Data/TDbTransactionTest.php b/tests/unit/Data/TDbTransactionTest.php index b51fda04..ee8f7c4c 100644 --- a/tests/unit/Data/TDbTransactionTest.php +++ b/tests/unit/Data/TDbTransactionTest.php @@ -1,6 +1,8 @@ <?php -Prado::using('System.Data.*'); +use Prado\Data\TDbConnection; +use Prado\TApplication; + if(!defined('TEST_DB_FILE')) define('TEST_DB_FILE',dirname(__FILE__).'/db/test.db'); |