POST parameters to PHPUnit test
Posted
by Alejandra
on Stack Overflow
See other posts from Stack Overflow
or by Alejandra
Published on 2010-04-27T16:12:22Z
Indexed on
2010/04/27
21:23 UTC
Read the original article
Hit count: 335
Hi Guys!
I'm new on testing, I'm using PHPUnit to write test. All the site has been designed using the MVC pattern.
I would like to test each method on my controllers, the problem is that such methods receives the parameters though the $_POST variable. How can I overwrite this variable?
Thanks in advance Alejandra
© Stack Overflow or respective owner