[fw-general] Re: Get Apache variable in PHPUnit tests

2013-05-08 Thread stef
Hi, that crossed my mind, but these variables are keeping sensitive payment data and some settings that differs on Unix and Windows system. Payment server must be contacted in test environment, and hostname, port... of that server is also stetted up using SetEnv. I would like that tests to work o

[fw-general] Re: Get Apache variable in PHPUnit tests

2013-05-08 Thread stef
Basically, I wanted to test very simple function on third party payment server. This is why I thought to go with remote connect. But it seems that mock will be the best solution since it will grow to more complex functionality. This discussion cleared my mind. Thank you all. (From mobile) 09.05.2

Re: [fw-general] Re: Get Apache variable in PHPUnit tests

2013-05-08 Thread Dan.latter
Does it have to connect payment server? It's hard for me to tell without knowing in depth details, do you own/run payment server? I'd argue that you should'nt be connecting to servers in unit tests. But I guess it depends on specific case. stef wrote: Hi, that crossed my mind, but these vari

Re: [fw-general] Re: Get Apache variable in PHPUnit tests

2013-05-08 Thread David Muir
On 09/05/13 00:56, stef wrote: Hi, that crossed my mind, but these variables are keeping sensitive payment data and some settings that differs on Unix and Windows system. Payment server must be contacted in test environment, and hostname, port... of that server is also stetted up using SetEnv.