mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-01 12:40:11 +02:00
create a Test folder for each pattern
This commit is contained in:
17
Structural/Registry/Tests/RegistryTest.php
Normal file
17
Structural/Registry/Tests/RegistryTest.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user