/**
  *  @expectedException Faker\Components\Engine\EngineException
  *  @expectedExceptionMessage Unknown column mapping at key::badkey
  */
 public function testBadKey()
 {
     $element = $this->getMockBuilder('Doctrine\\DBAL\\Types\\Type')->setMethods(array('getSQLDeclaration', 'getName', 'convertToDatabaseValue'))->disableOriginalConstructor()->getMock();
     $platform = $this->getMockBuilder('Doctrine\\DBAL\\Platforms\\AbstractPlatform')->setMethods(array('getBooleanTypeDeclarationSQL', 'getIntegerTypeDeclarationSQL', 'getBigIntTypeDeclarationSQL', 'getSmallIntTypeDeclarationSQL', '_getCommonIntegerTypeDeclarationSQL', 'initializeDoctrineTypeMappings', 'getClobTypeDeclarationSQL', 'getBlobTypeDeclarationSQL', 'getName'))->disableOriginalConstructor()->getMock();
     $key = 'column1';
     $map = new ValueConverter();
     $value = 'a string value';
     $map->set($key, $element);
     $map->convertValue('badkey', $platform, $value);
 }
 public function visitDBALGatherer(CompositeInterface $node)
 {
     if ($node instanceof DBALTypeInterface) {
         $this->valueConverter->set($node->getId(), $node->getDBALType());
     }
 }