tests: mock should not __clone Database
authorAntoine Musso <hashar@free.fr>
Tue, 3 Jan 2017 16:46:29 +0000 (17:46 +0100)
committerAntoine Musso <hashar@free.fr>
Tue, 3 Jan 2017 16:48:41 +0000 (17:48 +0100)
commit75b54a58c05c0bfdced5dc2aedbe12c769134670
treee614a333f898e8d276dcd597dfb664ba170e7ad9
parentc242b4351b7446c7c1d029c483ef12f0f1307f5c
tests: mock should not __clone Database

The Database __clone relies on a connLogger which is set in the
constructor.
However, when creating a mock of Database, PHPUnit 5.x does a __clone
which uses a connLogger. That leads to a fatal error.

The sole caller is FileBackendDBRepoWrapperTest, have its mock to skip
invoking __clone().

Change-Id: I2ee3b561104bdacc0232ba5e90b3eae3fbaa6f8f
tests/phpunit/includes/filerepo/FileBackendDBRepoWrapperTest.php