ZF-12202: Some Zend_Http_UserAgent test fail on Windows
Description
And are skipped on Linux, because of missing browscap.
On PHP 5.3.8, Windows 7 64bit, PHPUnit 3.4.15:
1) Zend_Http_UserAgentTest::testUserAgentDefineIdentificationSequence
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-iPhone
+Default Browser
I:\xampp\zf\tests\Zend\Http\UserAgentTest.php:125
2) Zend_Http_UserAgent_Features_Adapter_BrowscapTest::testGetFromRequest
Failed asserting that matches expected
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2012-06-04T16:28:03.000+0000
On Linux {{testUserAgentDefineIdentificationSequence}} fails for a different reason when using the browscap file from PHP 5.4.2 or 5.3.10:
Posted by Henry Hayes (henryhayes) on 2012-06-15T08:44:24.000+0000
Hi Guys,
I have improved the unit tests for this. Now, it uses a {{dataProvider}} to supply the useragent and expected results.
It is temporarily implemented here:
http://yinyang.googlecode.com/svn/trunk/…