Issues

ZF-9868: skip upload tests if uploads are disabled

Issue Type: Unit Tests: Task Created: 2010-05-20T13:37:59.000+0000 Last Updated: 2010-05-20T13:39:04.000+0000 Status: Resolved Fix version(s): - 1.10.5 (26/May/10)

Reporter: Jan Pieper (jpieper) Assignee: Jan Pieper (jpieper) Tags: - Zend_Http_Client

Related issues: Attachments:

Description

<pre class="highlight">$ 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

Posted by Jan Pieper (jpieper) on 2010-05-20T13:39:03.000+0000

Fixed in r22214.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts