Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d74483 commit 3f1bd03Copy full SHA for 3f1bd03
1 file changed
Structural/Registry/Tests/RegistryTest.php
@@ -6,6 +6,19 @@
6
7
class RegistryTest extends \PHPUnit_Framework_TestCase
8
{
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
22
public function testSetAndGetLogger()
23
24
Registry::set(Registry::LOGGER, new \StdClass());
0 commit comments