]> git.mxchange.org Git - friendica.git/commit
Introduce test optimization
authorPhilipp Holzer <admin+github@philipp.info>
Sat, 27 Jul 2019 12:37:24 +0000 (14:37 +0200)
committerPhilipp Holzer <admin+github@philipp.info>
Sat, 27 Jul 2019 21:54:13 +0000 (23:54 +0200)
commit37d03bbeae44993bb876bfaaaff3878125c44ef7
tree7905fd956c7881f44d24905a18425f572104fb25
parent07aaf292ec62c90585c614f5dbbc39f7805fe1d6
Introduce test optimization
- Add static connection for whole tests
- Introduce ExtendedPDO class to enable nested transactions
- Add rollback logic for tests to ensure reliability and increase speed
src/Database/Database.php
tests/DatabaseTest.php
tests/Util/Database/ExtendedPDO.php [new file with mode: 0644]
tests/Util/Database/StaticDatabase.php [new file with mode: 0644]
tests/include/ApiTest.php