Facile\DoctrineMySQLComeBack\Doctrine\DBAL\ConnectionTest::testContructorWithInvalidDriver PHP Method

testContructorWithInvalidDriver() public method

    public function testContructorWithInvalidDriver()
    {
        $driver = $this->prophesize('Doctrine\\DBAL\\Driver');
        $configuration = $this->prophesize('Doctrine\\DBAL\\Configuration');
        $eventManager = $this->prophesize('Doctrine\\Common\\EventManager');
        $platform = $this->prophesize('Doctrine\\DBAL\\Platforms\\AbstractPlatform');
        $params = ['driverOptions' => ['x_reconnect_attempts' => 999], 'platform' => $platform->reveal()];
        $connection = new Connection($params, $driver->reveal(), $configuration->reveal(), $eventManager->reveal());
        static::assertInstanceOf('Facile\\DoctrineMySQLComeBack\\Doctrine\\DBAL\\Connection', $connection);
    }