예제 #1
0
 public function testVariableRefs()
 {
     $ref =& EE::get_ref('x');
     $this->assertSame('z', $ref['y']);
     $ref['y'] = 'zzz';
     $this->assertSame('zzz', EE::get('x', 'y'));
     $ref2 =& EE::get_ref('foo');
     $this->assertSame('bar', $ref2);
     $ref2 = 'oof';
     $this->assertSame('oof', EE::get('foo'));
 }