Pinq\Tests\Integration\Providers\DSL\EnglishDSLProviderWithStructuralVariableInliningTest::testVariableVariableApplyQuery PHP Метод

testVariableVariableApplyQuery() публичный Метод

    public function testVariableVariableApplyQuery()
    {
        foreach (['fff', 'bbbbb'] as $varName) {
            $this->assertOperationIsCorrect(function (IRepository $repository) use($varName) {
                $repository->take(5)->join([])->apply(function (&$i, $o) use($varName) {
                    $i /= ${$varName};
                });
            }, <<<ENG
Starting from and up to the specified element
Join with: [array or iterator] and update the outer values according to: { \$i /= \${$varName}; } with parameters: [\$this, \$varName]
ENG
);
        }
    }