PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
May 29, 2014 12:33
Do I have to mock the Doctrine parts? Why can't I use the entityManager directly?
May 29, 2014 12:33
Yeah but for instance, I want to test my createUser method (create a user from array + save in database) in different situations (no user in db, user with the same email, etc). I'm using Doctrine.
May 29, 2014 12:31
I would like to know, what are the pros of mocking in PHPUnit? I really don't understand when to use them.
May 29, 2014 12:25
hi