Doctrine\MongoDB\Tests\Query\BuilderTest::provideProjections PHP Method

provideProjections() private method

Provide arguments for select() and exclude() tests.
private provideProjections ( boolean $include ) : array
$include boolean Whether the field should be included or excluded
return array
    private function provideProjections($include)
    {
        $project = $include ? 1 : 0;
        return ['multiple arguments' => [['foo', 'bar'], ['foo' => $project, 'bar' => $project]], 'no arguments' => [[], []], 'array argument' => [[['foo', 'bar']], ['foo' => $project, 'bar' => $project]], 'empty array' => [[[]], []]];
    }
BuilderTest