From af3e40aef6cf4b639dca3893a307e8bd7550920f Mon Sep 17 00:00:00 2001 From: zYne Date: Mon, 29 Jan 2007 21:37:51 +0000 Subject: [PATCH] cache test case skeletons added --- tests/Cache/ApcTestCase.php | 37 +++++++++++++++++++++++++++++ tests/Cache/MemcacheTestCase.php | 40 ++++++++++++++++++++++++++++++++ tests/Cache/SqliteTestCase.php | 37 +++++++++++++++++++++++++++++ tests/CacheTestCase.php | 37 +++++++++++++++++++++++++++++ tests/run.php | 12 +++++----- 5 files changed, 157 insertions(+), 6 deletions(-) create mode 100644 tests/Cache/ApcTestCase.php create mode 100644 tests/Cache/MemcacheTestCase.php create mode 100644 tests/Cache/SqliteTestCase.php create mode 100644 tests/CacheTestCase.php diff --git a/tests/Cache/ApcTestCase.php b/tests/Cache/ApcTestCase.php new file mode 100644 index 000000000..bc17e67f9 --- /dev/null +++ b/tests/Cache/ApcTestCase.php @@ -0,0 +1,37 @@ +. + */ + +/** + * Doctrine_Cache_Apc_TestCase + * + * @package Doctrine + * @subpackage Doctrine_Cache + * @author Konsta Vesterinen + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @category Object Relational Mapping + * @link www.phpdoctrine.com + * @since 1.0 + * @version $Revision$ + */ +class Doctrine_Cache_Apc_TestCase +{ + +} diff --git a/tests/Cache/MemcacheTestCase.php b/tests/Cache/MemcacheTestCase.php new file mode 100644 index 000000000..6f3d3fd94 --- /dev/null +++ b/tests/Cache/MemcacheTestCase.php @@ -0,0 +1,40 @@ +. + */ + +/** + * Doctrine_Cache_Memcache_TestCase + * + * @package Doctrine + * @subpackage Doctrine_Cache + * @author Konsta Vesterinen + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @category Object Relational Mapping + * @link www.phpdoctrine.com + * @since 1.0 + * @version $Revision$ + */ +class Doctrine_Cache_Memcache_TestCase +{ + +} +class Doctrine_Cache_Memcache_Mock extends Doctrine_Cache_Memcache +{ +} diff --git a/tests/Cache/SqliteTestCase.php b/tests/Cache/SqliteTestCase.php new file mode 100644 index 000000000..f8bb63e50 --- /dev/null +++ b/tests/Cache/SqliteTestCase.php @@ -0,0 +1,37 @@ +. + */ + +/** + * Doctrine_Cache_Sqlite_TestCase + * + * @package Doctrine + * @subpackage Doctrine_Cache + * @author Konsta Vesterinen + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @category Object Relational Mapping + * @link www.phpdoctrine.com + * @since 1.0 + * @version $Revision$ + */ +class Doctrine_Cache_Sqlite_TestCase +{ + +} diff --git a/tests/CacheTestCase.php b/tests/CacheTestCase.php new file mode 100644 index 000000000..5c53055fa --- /dev/null +++ b/tests/CacheTestCase.php @@ -0,0 +1,37 @@ +. + */ + +/** + * Doctrine_Cache_TestCase + * + * @package Doctrine + * @subpackage Doctrine_Cache + * @author Konsta Vesterinen + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @category Object Relational Mapping + * @link www.phpdoctrine.com + * @since 1.0 + * @version $Revision$ + */ +class Doctrine_Cache_TestCase +{ + +} diff --git a/tests/run.php b/tests/run.php index cd62dbf0c..469db5ab3 100644 --- a/tests/run.php +++ b/tests/run.php @@ -62,7 +62,7 @@ $test = new GroupTest('Doctrine Framework Unit Tests'); // DATABASE ABSTRACTION tests - +/** // Connection drivers (not yet fully tested) $test->addTestCase(new Doctrine_Connection_Pgsql_TestCase()); $test->addTestCase(new Doctrine_Connection_Oracle_TestCase()); @@ -209,16 +209,16 @@ $test->addTestCase(new Doctrine_Query_Select_TestCase()); $test->addTestCase(new Doctrine_Query_Expression_TestCase()); $test->addTestCase(new Doctrine_Query_Having_TestCase()); $test->addTestCase(new Doctrine_Query_Join_TestCase()); - $test->addTestCase(new Doctrine_Query_From_TestCase()); $test->addTestCase(new Doctrine_Query_JoinCondition_TestCase()); - $test->addTestCase(new Doctrine_ColumnAlias_TestCase()); - $test->addTestCase(new Doctrine_Query_Subquery_TestCase()); - $test->addTestCase(new Doctrine_Query_Orderby_TestCase()); - +*/ +$test->addTestCase(new Doctrine_Cache_TestCase()); +$test->addTestCase(new Doctrine_Cache_Apc_TestCase()); +$test->addTestCase(new Doctrine_Cache_Memcache_TestCase()); +$test->addTestCase(new Doctrine_Cache_Sqlite_TestCase()); // Cache tests //$test->addTestCase(new Doctrine_Cache_Query_SqliteTestCase());