Neos\Flow\Tests\Unit\Persistence\Doctrine\QueryResultTest::countCountsQueryResultDirectlyIfAlreadyInitialized PHP Method

countCountsQueryResultDirectlyIfAlreadyInitialized() public method

    public function countCountsQueryResultDirectlyIfAlreadyInitialized()
    {
        $this->query->expects($this->never())->method('count');
        $this->queryResult->toArray();
        $this->assertEquals(3, $this->queryResult->count());
    }