Пример #1
0
 /**
  * @expectedException RuntimeException
  */
 public function testSetVariablePassByRef()
 {
     $scope = new Scope();
     $scope->set('test', 4);
     $scope->passByRef('test', false);
     $scope->call(function (&$test) {
         $test = 10;
     });
     $scope->assertEquals($scope->get('test'), 4);
 }