/** * @depends testCallPassingValueByReference * @expectedException RuntimeException */ public function testCallNoPassByRef() { $scope = new Scope(); $scope->test = 1; $scope->passByRef('test', false); $scope->call(function (&$test) { }); }