Example #1
0
 /**
  * Test the JRegistry::loadJson method.
  */
 public function testLoadJSON()
 {
     $string = '{"foo":"testloadjson"}';
     $registry = new JRegistry();
     $result = $registry->loadJson($string);
     // Result is always true, no error checking in method.
     // Test getting a known value.
     $this->assertThat($registry->get('foo'), $this->equalTo('testloadjson'), 'Line: ' . __LINE__ . '.');
 }