forked from williamdodson/cloudfusion
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the caching tests and added support for CloudFusion::delete_c…
…ache_response().
- Loading branch information
Ryan Parman
committed
Oct 11, 2009
1 parent
a67d3cb
commit f35c5bd
Showing
16 changed files
with
223 additions
and
67 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
AmazonSDB::delete_cache_response CacheAPC | ||
|
||
--FILE-- | ||
<?php | ||
// Dependencies | ||
require_once dirname(__FILE__) . '/../../cloudfusion.class.php'; | ||
|
||
// Instantiate | ||
$sdb = new AmazonSDB(); | ||
|
||
// Delete the data | ||
$response = $sdb->delete_cache_response('list_domains', 'apc'); | ||
var_dump($response); | ||
?> | ||
|
||
--EXPECT-- | ||
bool(false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
AmazonSDB::delete_cache_response CacheFile | ||
|
||
--FILE-- | ||
<?php | ||
// Dependencies | ||
require_once dirname(__FILE__) . '/../../cloudfusion.class.php'; | ||
|
||
// Instantiate | ||
$sdb = new AmazonSDB(); | ||
|
||
// Delete the data | ||
$response = $sdb->delete_cache_response('list_domains', dirname(dirname(__FILE__)) . '/_cache'); | ||
var_dump($response); | ||
?> | ||
|
||
--EXPECT-- | ||
bool(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--TEST-- | ||
AmazonSDB::delete_cache_response CacheMC | ||
|
||
--SKIPIF-- | ||
<?php | ||
if (!method_exists('Memcache', 'connect')) print 'skip Memcached extension not available'; | ||
elseif (!Memcache::connect('127.0.0.1')) print 'skip Memcached cannot connect to server'; | ||
?> | ||
|
||
--FILE-- | ||
<?php | ||
// Dependencies | ||
require_once dirname(__FILE__) . '/../../cloudfusion.class.php'; | ||
|
||
// Instantiate | ||
$sdb = new AmazonSDB(); | ||
|
||
// Delete the data | ||
$response = $sdb->delete_cache_response('list_domains', array( | ||
array('host' => '127.0.0.1') | ||
)); | ||
var_dump($response); | ||
?> | ||
|
||
--EXPECT-- | ||
bool(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
AmazonSDB::delete_cache_response CachePDO:SQLite | ||
|
||
--FILE-- | ||
<?php | ||
// Dependencies | ||
require_once dirname(__FILE__) . '/../../cloudfusion.class.php'; | ||
|
||
// Instantiate | ||
$sdb = new AmazonSDB(); | ||
|
||
// Delete the data | ||
$response = $sdb->delete_cache_response('list_domains', 'pdo.sqlite:' . dirname(dirname(__FILE__)) . '/_cache/sqlite.db'); | ||
var_dump($response); | ||
?> | ||
|
||
--EXPECT-- | ||
bool(true) |
Oops, something went wrong.