summaryrefslogtreecommitdiff
path: root/tests/unit/Caching
diff options
context:
space:
mode:
authorknut <>2007-06-09 14:16:18 +0000
committerknut <>2007-06-09 14:16:18 +0000
commit7315ec25dc4ad7ef6cfdff47655d8a3c5f5cac4c (patch)
tree2b912da1a4bb6e0d46509b31da484a882acc96dd /tests/unit/Caching
parentc91ec2590f9c1f7689c468284dc4d523da308897 (diff)
added custom Prado class for unit tests
Diffstat (limited to 'tests/unit/Caching')
-rw-r--r--tests/unit/Caching/AllTests.php6
-rw-r--r--tests/unit/Caching/TCacheTest.php51
2 files changed, 4 insertions, 53 deletions
diff --git a/tests/unit/Caching/AllTests.php b/tests/unit/Caching/AllTests.php
index 072a6182..555a4344 100644
--- a/tests/unit/Caching/AllTests.php
+++ b/tests/unit/Caching/AllTests.php
@@ -5,7 +5,8 @@ if(!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Caching_AllTests::main');
}
-require_once 'TCacheTest.php';
+require_once 'TSqliteCacheTest.php';
+require_once 'TAPCCacheTest.php';
class Caching_AllTests {
public static function main() {
@@ -15,7 +16,8 @@ class Caching_AllTests {
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('System.Caching');
- $suite->addTestSuite('TCacheTest');
+ $suite->addTestSuite('TSqliteCacheTest');
+ $suite->addTestSuite('TAPCCacheTest');
return $suite;
}
diff --git a/tests/unit/Caching/TCacheTest.php b/tests/unit/Caching/TCacheTest.php
deleted file mode 100644
index 76df7903..00000000
--- a/tests/unit/Caching/TCacheTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-require_once dirname(__FILE__).'/../phpunit.php';
-
-Prado::using('System.Caching.TCache');
-
-/**
- * @package System.Caching
- */
-class TCacheTest extends PHPUnit_Framework_TestCase {
-
- public function setUp() {
- }
-
- public function tearDown() {
- }
-
- public function testInit() {
- throw new PHPUnit_Framework_IncompleteTestError();
- }
-
- public function testPrimaryCache() {
- throw new PHPUnit_Framework_IncompleteTestError();
- }
-
- public function testKeyPrefix() {
- throw new PHPUnit_Framework_IncompleteTestError();
- }
-
- public function testGet() {
- throw new PHPUnit_Framework_IncompleteTestError();
- }
-
- public function testSet() {
- throw new PHPUnit_Framework_IncompleteTestError();
- }
-
- public function testAdd() {
- throw new PHPUnit_Framework_IncompleteTestError();
- }
-
- public function testDelete() {
- throw new PHPUnit_Framework_IncompleteTestError();
- }
-
- public function testFlush() {
- throw new PHPUnit_Framework_IncompleteTestError();
- }
-
-}
-
-?>