Commit 35579f63 authored by Shawn Barratt's avatar Shawn Barratt
Browse files


parent dd560fa2
namespace Ethereal;
require_once dirname(dirname(__DIR__)).'/vendor/autoload.php';
class CacheTest extends \PHPUnit_Framework_TestCase
public $cache;
public function setup()
$this->cache = new Cache([
'scheme' => 'tcp',
'host' => 'redis',
'port' => 6379,
], [
'profile' => '3.0.3'
public function testCacheRetrieve()
$varName = 'testfield';
$varValue = 'testValue';
$this->cache->set($varName, $varValue);
$this->assertTrue(($this->cache->get($varName) == $varValue));
\ No newline at end of file
<phpunit verbose="true" colors="true">
<testsuite name="Ethereal lib Tests">
<directory suffix="Test.php">lib/tests</directory>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment