PHPUnit — Execute original logic using a mock object

Allowing to execute of the original logic of a mock object

When you are testing with PHPUnit you could be the need to use the real objects or mock objects, depending on what you want to test.

The mocked objects know in advance what is supposed to happen during the test and which methods will be invoked.