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.  I would like that tests to work on
production and dev environment without changing anything. Also, I don't want
each developer to change some custom settings.

Could mock fit in these requirements?

Thanx



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Get-Apache-variable-in-PHPUnit-tests-tp4659961p4659963.html
Sent from the Zend Framework mailing list archive at Nabble.com.


You can populate the environment variables using putenv() in the PHPUnit bootstrap.

Cheers,
David

--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to