Pinq\Tests\Integration\ExpressionTrees\ComplexConverterTest::testUsedVariableResolution PHP Method

testUsedVariableResolution() public method

    public function testUsedVariableResolution()
    {
        $valueSet = [[-500], [-5], [-2], [-1], [1], [2], [5], [500]];
        $factor = 5;
        $this->assertRecompilesCorrectly(function ($i) use($factor) {
            return $i * $factor;
        }, $valueSet);
    }