Skip to content

Commit 3f1bd03

Browse files
committed
Some more tests, the constant confuses a bit
1 parent 4d74483 commit 3f1bd03

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Structural/Registry/Tests/RegistryTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@
66

77
class RegistryTest extends \PHPUnit_Framework_TestCase
88
{
9+
public function testSimpleGetSet()
10+
{
11+
$key = 'myIdentifier';
12+
$object = new \StdClass();
13+
$object->props = array('a' => 1, 'b' => 2);
14+
15+
Registry::set($key, $object);
16+
$actual = Registry::get($key);
17+
18+
$this->assertEquals($object, $actual);
19+
$this->assertInstanceOf('StdClass', $actual);
20+
}
21+
922
public function testSetAndGetLogger()
1023
{
1124
Registry::set(Registry::LOGGER, new \StdClass());

0 commit comments

Comments
 (0)