Thx for the advise guys, needless to say I refactored to get rid of the 
new call and all is well using a mock.

Btw is there any news on Zend_Di it would be so useful to have an IOC 
container in the framework!

Keith Pope
Web Developer

-----Original Message-----
From: Steven Brown [mailto:[EMAIL PROTECTED] 
Sent: 19 June 2008 10:17
To: [email protected]
Subject: RE: [fw-general] Zend_Session Unit Testing

You can get around it using output buffers in the test suite but it's a 
bit of a hassle and disrupts the output a bit, a mock object would be 
much better. I hope Matthew has a solution, can't wait for it!

-----Original Message-----
From: Karol Grecki [mailto:[EMAIL PROTECTED]
Sent: Thursday, 19 June 2008 6:55 PM
To: [email protected]
Subject: Re: [fw-general] Zend_Session Unit Testing


Jason

It happens because information about executed tests printed on screen is
treated by Zend_Session as "borwser output" and it will throw an 
exception.
It could probably be fixed by changing it to detect if it's run on 
command
line and skip this check.

Cheers



Jason Webster wrote:
> 
> Just a shot in the dark, but you may want to check (or preferably 
> remove) all PHP closing tags at the end of your files. This is a 
highly 
> recommended practice, and 90% of the time fixes these types of errors.
> 
> Keith Pope wrote:
>>  
>> Hi,
>>
>> How do you setup zend_session to run in PHPUnit Suite, I keep getting
>> output before session start exceptions?
>>
>> Sorry if I have missed something obvious the docs are a bit unclear.
>>
>> Thx
>>
>> Keith Pope
>> Web Developer
>> --
>> allpay.net Limited, Fortis et Fides, Whitestone Business Park,
>> Whitestone, Hereford, HR1 3SE. 
>> Registered in England No. 02933191. UK VAT Reg. No. 666 9148 88. 
>>
>> Telephone: 0870 243 3434, Fax: 0870 243 6041. 
>> Website: www.allpay.net
>> Email: [EMAIL PROTECTED] 
>>
>> This email, and any files transmitted with it, is confidential and
>> intended solely for the use of the individual or entity to whom it is
>> addressed. If you have received this email in error please notify the
>> allpay.net Information Security Manager at the number above.
>>   
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Zend_Form---Validation-of-field-with-same-name-as-the-
form-gives-problems-tp17935684p18000358.html
Sent from the Zend Framework mailing list archive at Nabble.com.





--

allpay.net Limited, Fortis et Fides, Whitestone Business Park, Whitestone, 
Hereford, HR1 3SE.

Registered in England No. 02933191. UK VAT Reg. No. 666 9148 88.



Telephone: 0870 243 3434, Fax: 0870 243 6041.

Website: www.allpay.net

Email: [EMAIL PROTECTED]



This email, and any files transmitted with it, is confidential and intended 
solely for the use of the individual or entity to whom it is addressed. If you 
have received this email in error please notify the allpay.net Information 
Security Manager at the number above.

Reply via email to