SearchGetters is primarily used for the purpose of exposing a number of protected methods in the underlying Search class as public for direct inspection during PHPUnit tests.
PHP has some more built-in functionality that allows you to “reflect” the properties and methods of a specified class, which essentially lets you examine, extract and manipulate those pieces of functionality (including their accessibility settings) without having to write a whole new accessor class.
Research examples that can be used for Unit Tests
SearchGetters is primarily used for the purpose of exposing a number of protected methods in the underlying Search class as public for direct inspection during PHPUnit tests.
PHP has some more built-in functionality that allows you to “reflect” the properties and methods of a specified class, which essentially lets you examine, extract and manipulate those pieces of functionality (including their accessibility settings) without having to write a whole new accessor class.
Research examples that can be used for Unit Tests