for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* @author : Korotkov Danila <[email protected]>
* @license https://mit-license.org/ MIT
*/
namespace Structural\Registry\Tests;
use Structural\Registry\Registry;
use PHPUnit\Framework\TestCase as PHPUnit_Framework_TestCase;
* Class RegistryTest
* @package Structural\Registry\Tests
class RegistryTest extends PHPUnit_Framework_TestCase
{
public function testRegistry()
Registry::setData('stdClass', new \stdClass());
$this->assertInstanceOf(\stdClass::class, Registry::getData('stdClass'));
}
public function testSetDataException()
$this->expectException(\InvalidArgumentException::class);
Registry::setData('StdClass', new \stdClass());
} // @codeCoverageIgnore
public function testGetDataException()
Registry::getData('StdClass');