Pinq\Tests\Integration\Queries\Functions\FunctionTest::testEmptyFunction PHP Метод

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

public testEmptyFunction ( )
    public function testEmptyFunction()
    {
        $function = $this->emptyFunction();
        $this->assertSame('CALLABLE!!', $function->getCallableId());
        $this->assertSame(0, $function->getParameters()->count());
        $this->assertEquals([], $function->getParameters()->getAll());
        $this->assertEquals([], $function->getParameterScopedVariableMap());
        $this->assertSame(false, $function->hasScopeType());
        $this->assertSame(null, $function->getScopeType());
        $this->assertSame(false, $function->hasNamespace());
        $this->assertSame(null, $function->getNamespace());
        $this->assertSame(0, $function->countBodyExpressions());
        $this->assertSame(0, $function->countBodyExpressionsUntilReturn());
        $this->assertEquals([], $function->getBodyExpressions());
        $this->assertEquals([], $function->getBodyExpressionsUntilReturn());
        $this->assertEquals(['CALLABLE!!'], $function->getParameterIds());
        $this->assertEquals(O\EvaluationContext::globalScope(), $function->getEvaluationContextFactory()->getEvaluationContext(ResolvedParameterRegistry::none()));
    }