Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests not working on OSX #139

Closed
hassankhan opened this issue Feb 20, 2015 · 2 comments
Closed

Tests not working on OSX #139

hassankhan opened this issue Feb 20, 2015 · 2 comments

Comments

@hassankhan
Copy link

Hi again, seems like the tests just won't run without failures on my machine:

PHPUnit 4.2.6 by Sebastian Bergmann.

Configuration read from /Volumes/Data HD/Dropbox/Projects/requests-master/tests/phpunit.xml.dist

....FF....F....F...F..F........................................  63 / 814 (  7%)
............................................................... 126 / 814 ( 15%)
..................................................F...F....F... 189 / 814 ( 23%)
.F...F..F...................................................... 252 / 814 ( 30%)
............................................................... 315 / 814 ( 38%)
....................................F...F...................... 378 / 814 ( 46%)
............................................................... 441 / 814 ( 54%)
............................................................... 504 / 814 ( 61%)
............................................................... 567 / 814 ( 69%)
............................................................... 630 / 814 ( 77%)
............................................................... 693 / 814 ( 85%)
............................................................... 756 / 814 ( 92%)
..........................................................

Time: 2.5 minutes, Memory: 32.25Mb

There were 14 failures:

1) RequestsTest_Auth_Basic::testPOSTUsingInstantiation with data set #0 ('Requests_Transport_fsockopen')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test'
+''

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Auth/Basic.php:77

2) RequestsTest_Auth_Basic::testPOSTUsingInstantiation with data set #1 ('Requests_Transport_cURL')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test'
+''

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Auth/Basic.php:77

3) RequestsTest_Transport_cURL::testGETWithNestedData
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'http://httpbin.org/get?test=true&test2%5Btest3%5D=test&test2%5Btest4%5D=test-too'
+'http://httpbin.org/get?test=true&test2[test3]=test&test2[test4]=test-too'

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Transport/Base.php:71

4) RequestsTest_Transport_cURL::testRawPOST
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test'
+''

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Transport/Base.php:119

5) RequestsTest_Transport_cURL::testRawPUT
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test'
+''

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Transport/Base.php:164

6) RequestsTest_Transport_cURL::testRawPATCH
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test'
+''

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Transport/Base.php:194

7) RequestsTest_Transport_cURL::testMultipleWithDifferingMethods
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test'
+''

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Transport/Base.php:571

8) RequestsTest_Transport_cURL::testMultipleToFile
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test'
+''

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Transport/Base.php:671

9) RequestsTest_Transport_fsockopen::testGETWithNestedData
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'http://httpbin.org/get?test=true&test2%5Btest3%5D=test&test2%5Btest4%5D=test-too'
+'http://httpbin.org/get?test=true&test2[test3]=test&test2[test4]=test-too'

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Transport/Base.php:71

10) RequestsTest_Transport_fsockopen::testRawPOST
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test'
+''

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Transport/Base.php:119

11) RequestsTest_Transport_fsockopen::testRawPUT
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test'
+''

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Transport/Base.php:164

12) RequestsTest_Transport_fsockopen::testRawPATCH
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test'
+''

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Transport/Base.php:194

13) RequestsTest_Transport_fsockopen::testMultipleWithDifferingMethods
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test'
+''

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Transport/Base.php:571

14) RequestsTest_Transport_fsockopen::testMultipleToFile
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'test'
+''

/Volumes/Data HD/Dropbox/Projects/requests-master/tests/Transport/Base.php:671

FAILURES!
Tests: 814, Assertions: 1219, Failures: 14.

Generating code coverage report in HTML format ... done
@rmccue
Copy link
Collaborator

rmccue commented Feb 26, 2015

sigh

My guess is that httpbin.org changed their output format. I'll check into this, thanks.

@hassankhan
Copy link
Author

I've looked through the code, and it seems like you can't do a raw POST/PUT/PATCH. I had a play around with settings, but it was largely unsuccessful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants