public function testClosureUsedVariableReference() { $ref = true; $this->assertEvaluatesTo(function () use(&$ref) { $ref = false; }, false); $this->assertFalse($ref); }