Skip to content

Errors trying to run the tests #19

@kafmil

Description

@kafmil

I'm getting the errors below when I try to run the phpunit tests. I'm using the test API key. I'm trying to get a drupal integration module going, it's almost there but I just need to finish testing. https://drupal.org/sandbox/kafmil/2088841

PHPUnit 3.7.22 by Sebastian Bergmann.

The Xdebug extension is not loaded. No code coverage will be generated.

.........................E....EF.E.

Time: 01:31, Memory: 4.00Mb

There were 3 errors:

  1. ShipmentTestCase::testCreateTrack
    API_Error: Object does not exist.

/path/to/postmaster/lib/Postmaster/ApiRequestor.php:69
/path/to/postmaster/lib/Postmaster/Shipment.php:54
/path/to/postmaster/lib/Postmaster/Shipment.php:65
/path/to/postmaster/tests/Postmaster/ShipmentTest.php:82

  1. TrackingTestCase::testTrackByReference
    InvalidData_Error: PostmasterError 1002: No tracking information available

/path/to/postmaster/lib/Postmaster/ApiRequestor.php:63
/path/to/postmaster/lib/Postmaster/Tracking.php:14
/path/to/postmaster/tests/Postmaster/TrackingTest.php:9

  1. TransitTimesTestCase::testGetTimes
    Network_Error: Unexpected error communicating with Postmaster. If this problem persists, let us know at support@postmaster.io.

(Network error [errno 35]: Unknown SSL protocol error in connection to api.postmaster.io:443 )

/path/to/postmaster/lib/Postmaster/ApiRequestor.php:141
/path/to/postmaster/lib/Postmaster/ApiRequestor.php:115
/path/to/postmaster/lib/Postmaster/ApiRequestor.php:44
/path/to/postmaster/lib/Postmaster/TransitTimes.php:19
/path/to/postmaster/tests/Postmaster/TransitTimesTest.php:14

There was 1 failure:

  1. TrackingTestCase::testTrackExternal
    Failed asserting that false is true.

/path/to/postmaster/tests/Postmaster/TrackingTest.php:28

FAILURES!
Tests: 35, Assertions: 93, Failures: 1, Errors: 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions