mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-28 18:50:11 +02:00
21 lines
471 B
PHP
21 lines
471 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Structural\Registry\Tests;
|
|
|
|
use DesignPatterns\Structural\Registry\Registry;
|
|
|
|
class RegistryTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
public function testSetAndGetLogger()
|
|
{
|
|
$key = Registry::LOGGER;
|
|
$object = new \StdClass();
|
|
|
|
Registry::set($key, $object);
|
|
$actual = Registry::get($key);
|
|
|
|
$this->assertEquals($object, $actual);
|
|
$this->assertInstanceOf('StdClass', $actual);
|
|
}
|
|
}
|