mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-07 10:04:27 +00:00
18 lines
411 B
PHP
18 lines
411 B
PHP
<?php
|
|
|
|
/**
|
|
* This class is used to mock PDO object with PHPUNIT mock system.
|
|
*
|
|
* Because __wakeup and __sleep methods are defined as final methods
|
|
* We can not serialize a PDO object and therefore we can not mock
|
|
* This object using PHPUnit.
|
|
*
|
|
* To get a mocked PDO object use it as follow :
|
|
*
|
|
* $mock = $this->getMock('PDOMock')
|
|
*/
|
|
class PDOMock extends \PDO
|
|
{
|
|
public function __construct() {}
|
|
}
|