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.
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.