| 1 | <?php | ||
| 7 | class RegistryTest extends \PHPUnit_Framework_TestCase { | ||
| 8 | 	public function testGetUnsetValue(){ | ||
| 9 | $registry = new Registry(); | ||
| 10 | 		$value = $registry->get('random_key'); | ||
| 11 | $this->assertNull($value); | ||
| 12 | } | ||
| 13 | |||
| 14 | 	public function testGetExistingValue(){ | ||
| 15 | $data = ['someKey' => 'someValue' ]; | ||
| 16 | $registry = new Registry(); | ||
| 17 | 		$registry->set('key', $data); | ||
| 18 | 		$value = $registry->get('key'); | ||
| 19 | |||
| 20 | $this->assertEquals($data, $value); | ||
| 21 | } | ||
| 22 | |||
| 23 | } | ||
| 24 |