What is 'mocking' in unit testing?
-
A
Running tests in a mock production environment
-
B
Replacing a dependency with a fake that records how it was called
-
C
Deliberately introducing bugs to test error handling
-
D
Skipping tests that are not yet implemented