Thx @Allenph
I think I have a basic grasp of concepts like Dependency Injection, Mocks, Stubs, etc in the context of unit testing. However, I can't figure out how to start unit testing my webapp backend (I use CodeIgniter) code because of how frequently it interacts with the database.
I don't think I can use Dependency Injection to create a mock database object since the db object is an instance variable of the CodeIgniter framework? Even if I could, I don't know how to create an adequate mock to return everything that's required (I can give a more detailed example if this is confusing)