public function getMaxIdentifierLengthAsksDoctrineForValue()
{
$mockDatabasePlatform = $this->getMockForAbstractClass('Doctrine\\DBAL\\Platforms\\AbstractPlatform', [], '', true, true, true, ['getMaxIdentifierLength']);
$mockDatabasePlatform->expects($this->atLeastOnce())->method('getMaxIdentifierLength')->will($this->returnValue(2048));
$mockConnection = $this->getMockBuilder('Doctrine\\DBAL\\Connection')->disableOriginalConstructor()->getMock();
$mockConnection->expects($this->atLeastOnce())->method('getDatabasePlatform')->will($this->returnValue($mockDatabasePlatform));
$mockEntityManager = $this->getMockBuilder('Doctrine\\ORM\\EntityManager')->disableOriginalConstructor()->getMock();
$mockEntityManager->expects($this->atLeastOnce())->method('getConnection')->will($this->returnValue($mockConnection));
$driver = $this->getAccessibleMock(FlowAnnotationDriver::class, ['dummy']);
$driver->_set('entityManager', $mockEntityManager);
$this->assertEquals(2048, $driver->_call('getMaxIdentifierLength'));
}