Valid parameters for this driver: -
(string) dbname
Name of the database to connect to -
(string) user
Username to use when connecting -
(string) password
Password to use when connecting -
(string) host
Hostname to use when connecting -
(string) driver
Which driver to use -
(PDO) pdo
PDO adapter to use, as an alternative to specifying the above
Author: Espen Hovlandsdal (espen@hovlandsdal.com)
Inheritance: implements Imbo\EventListener\ImageVariations\Database\DatabaseInterface
Example #1
0
 /**
  * @covers Imbo\EventListener\ImageVariations\Database\Doctrine::__construct
  * @covers Imbo\EventListener\ImageVariations\Database\Doctrine::setConnection
  */
 public function testCanSetConnection()
 {
     $connection = $this->getMockBuilder('Doctrine\\DBAL\\Connection')->disableOriginalConstructor()->getMock();
     $connection->expects($this->once())->method('insert')->will($this->returnValue(false));
     $adapter = new Doctrine([], $connection);
     $this->assertFalse($adapter->storeImageVariationMetadata('key', 'img', 1337, 1942));
 }