for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class RegistryTest extends \PHPUnit\Framework\TestCase
{
public function testGetSet()
$retVal = \Suricate\Registry::get('index', 'fallback');
$this->assertEquals($retVal, 'fallback');
$retVal = \Suricate\Registry::exists('index');
$this->assertFalse($retVal);
\Suricate\Registry::set('index', 'myNewVal');
$this->assertEquals($retVal, 'myNewVal');
$this->assertTrue($retVal);
\Suricate\Registry::clean();
}