Page MenuHomeDevCentral

Support blackhole database engine for mocks
ClosedPublic

Authored by dereckson on Jun 14 2023, 21:51.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 23, 11:51
Unknown Object (File)
Wed, Jul 23, 06:55
Unknown Object (File)
Sun, Jul 20, 20:00
Unknown Object (File)
Sun, Jul 20, 19:58
Unknown Object (File)
Wed, Jul 16, 10:06
Unknown Object (File)
Tue, Jul 15, 10:39
Unknown Object (File)
Fri, Jul 11, 00:16
Unknown Object (File)
Fri, Jul 11, 00:15
Subscribers
None

Details

Summary

It can be convenient in tests to replace a full fledged instance
of the database engine by a mock doing nothing. That's the purpose
of this change.

This blackhole engine doesn't really use any of the parameters passed
to the methods, and that's expected behavior for a blackhole. As such,
phpcs is configured to ignore unused parameters.

Test Plan

used in Zed to test GeoLocation class

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable