Issues

ZF-9868: skip upload tests if uploads are disabled

Description

$ phpunit Zend_Http_Client_CurlTest

PHPUnit 3.4.11 by Sebastian Bergmann.

.................................................FFSF.F..... 60 / 61
S

Time: 3 seconds, Memory: 5.75Mb

There were 4 failures:

1) Zend_Http_Client_CurlTest::testUploadRawData
Response body does not include expected upload parameters
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-uploadfile myfile.txt text/plain 34633

/usr/share/zend/tests/Zend/Http/Client/CommonHttpTests.php:749

2) Zend_Http_Client_CurlTest::testUploadLocalFile
Response body does not include expected upload parameters
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-uploadfile CommonHttpTests.php text/x-foo-bar 34633

/usr/share/zend/tests/Zend/Http/Client/CommonHttpTests.php:765

3) Zend_Http_Client_CurlTest::testUploadNameWithSpecialChars
Response body does not include expected upload parameters
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-uploadfile myfile.txt text/plain 34633

/usr/share/zend/tests/Zend/Http/Client/CommonHttpTests.php:805

4) Zend_Http_Client_CurlTest::testMutipleFilesWithSameFormNameZF5744
Response body does not include expected upload parameters
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-uploadfile file1.txt text/plain 26
-uploadfile file2.txt text/plain 26
-uploadfile someotherfile.foo text/plain 26

/usr/share/zend/tests/Zend/Http/Client/CommonHttpTests.php:840

FAILURES!
Tests: 61, Assertions: 114, Failures: 4, Skipped: 2.

Comments

Fixed in r22214.