Stack Exchange
log in
users (6)
rooms (10)
faq
AlixB
general
recent
conversations
PHP
Support group for those afflicted with PHP. Don't ask to ask, ...
9
Litz
May 29, 2014 12:33
Do I have to mock the Doctrine parts? Why can't I use the entityManager directly?
Litz
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.
Litz
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.
Litz
May 29, 2014 12:25
hi