Cargo cult programming is defined by Wikipedia as "Ritual inclusion of code or program structures that serve no real purpose."
One ritual, deeply embedded into the hearts and minds of many software developers is the creation of getters and setter on entities. It' so widespread that IDEs have tools to do it automatically.
Why do we do it? Does it serve some purpose or is it just a cargo cult programming ritual?
Tips on how to write better test doubles (often referred to as mocks in PHP-land). Cats included.