mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-26 01:31:20 +02:00
18 lines
388 B
PHP
18 lines
388 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Structural\Registry\Tests;
|
|
|
|
use DesignPatterns\Structural\Registry\Registry;
|
|
|
|
class RegistryTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
|
|
public function testSetAndGetLogger()
|
|
{
|
|
Registry::set(Registry::LOGGER, new \StdClass());
|
|
|
|
$logger = Registry::get(Registry::LOGGER);
|
|
$this->assertInstanceOf('StdClass', $logger);
|
|
}
|
|
}
|