Doctrine\MongoDB\Tests\Aggregation\Stage\GroupTest::testProxiedExprMethods PHP Method

testProxiedExprMethods() public method

public testProxiedExprMethods ( $method, array $args = [] )
$args array
    public function testProxiedExprMethods($method, array $args = [])
    {
        $expr = $this->getMockAggregationExpr();
        $expr->expects($this->once())->method($method)->with(...$args);
        $stage = new GroupStub($this->getTestAggregationBuilder());
        $stage->setQuery($expr);
        $this->assertSame($stage, $stage->{$method}(...$args));
    }