for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Redaxscript\Tests;
/**
* RegistryTest
*
* @since 2.1.0
* @package Redaxscript
* @category Tests
* @author Henry Ruhs
* @author Gary Aylward
* @covers Redaxscript\Registry
*/
class RegistryTest extends TestCaseAbstract
{
* testInit
* @since 3.0.0
public function testInit() : void
/* setup */
$this->_registry->init();
/* actual */
$actual = $this->_registry;
/* compare */
$this->assertInstanceOf('Redaxscript\Registry', $actual);
}
* testGetAndSet
public function testGetAndSet() : void
$this->_registry->set('testKey', 'testValue');
$actual = $this->_registry->get('testKey');
$this->assertEquals('testValue', $actual);
* testGetArray
* @since 4.0.0
public function testGetArray() : void
$actualArray = $this->_registry->getArray();
$this->assertArrayHasKey('testKey', $actualArray);
* testGetInvalid
public function testGetInvalid() : void
$actual = $this->_registry->get('invalidKey');
$this->assertNull($actual);