GraphAware\Neo4j\OGM\Tests\Performance\NodeWithRelsPerformanceTest::assertGraphState PHP Method

assertGraphState() private method

private assertGraphState ( $numberOfPersons, $numberOfSkills, $numberOfCompanies )
    private function assertGraphState($numberOfPersons, $numberOfSkills, $numberOfCompanies)
    {
        $personsCount = $this->client->run('MATCH (n:Person) RETURN count(*) as c')->firstRecord()->get('c');
        $skillsCount = $this->client->run('MATCH (n:Skill) RETURN count(*) as c')->firstRecord()->get('c');
        $companiesCount = $this->client->run('MATCH (n:Company) RETURN count(*) as c')->firstRecord()->get('c');
        $this->assertEquals($numberOfPersons, $personsCount);
        $this->assertEquals($numberOfSkills, $skillsCount);
        $this->assertEquals($numberOfCompanies, $companiesCount);
    }