Zend Framework

skip upload tests if uploads are disabled

Details

  • Type: Unit Tests: Task Unit Tests: Task
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.10.0, 1.10.1, 1.10.2, 1.10.3, 1.10.4
  • Fix Version/s: 1.10.5
  • Component/s: Zend_Http_Client
  • Labels:
    None

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.

Activity

Hide
Jan Pieper added a comment -

Fixed in r22214.

Show
Jan Pieper added a comment - Fixed in r22214.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: