public function testUsedVariableIndexers() { $var = ['index' => 'foo']; $this->assertEvaluatesTo(function () use($var) { $var['index']; }, 'foo'); }