public function executingAQueryWillOnlyExecuteItLazily()
{
$this->removeExampleEntities();
$this->insertExampleEntity();
$allResults = $this->testEntityRepository->findAll();
$this->assertInstanceOf(QueryResult::class, $allResults);
$this->assertAttributeInternalType('null', 'rows', $allResults, 'Query Result did not load the result collection lazily.');
$allResultsArray = $allResults->toArray();
$this->assertEquals('Flow', $allResultsArray[0]->getName());
$this->assertAttributeInternalType('array', 'rows', $allResults);
}