mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 12:03:14 +00:00
14 lines
331 B
PHP
14 lines
331 B
PHP
<?php
|
|
|
|
class connectionTest extends \PhraseanetPHPUnitAbstract
|
|
{
|
|
public function testMysqlTimeoutIsHandled()
|
|
{
|
|
$conn = connection::getPDOConnection(self::$DI['app']);
|
|
$conn->exec('SET @@local.wait_timeout= 1');
|
|
usleep(1200000);
|
|
$conn->exec('SHOW DATABASES');
|
|
$conn->close();
|
|
}
|
|
}
|