Skip to content

Instantly share code, notes, and snippets.

@Sleavely
Created November 4, 2016 13:28
Show Gist options
  • Save Sleavely/48c78c36c1886ebdae3b11fb95981a93 to your computer and use it in GitHub Desktop.
Save Sleavely/48c78c36c1886ebdae3b11fb95981a93 to your computer and use it in GitHub Desktop.
PHPUnit 5.0.9 by Sebastian Bergmann and contributors.
........................EEEEFFFFFFFFFFF 39 / 39 (100%)
Time: 98 ms, Memory: 4.50Mb
There were 4 errors:
1) CalendArt\Adapter\Google\ApiErrorExceptionTest::testConstructWithParseException
Prophecy\Exception\Doubler\MethodNotFoundException: Method `Double\stdClass\P8::json()` is not defined.
C:\Git\calendart-googleadapter\test\Exception\ApiErrorExceptionTest.php:15
C:\Git\calendart-googleadapter\test\Exception\ApiErrorExceptionTest.php:15
2) CalendArt\Adapter\Google\ApiErrorExceptionTest::testConstructWithUnexceptedFormat
Prophecy\Exception\Doubler\MethodNotFoundException: Method `Double\stdClass\P9::json()` is not defined.
C:\Git\calendart-googleadapter\test\Exception\ApiErrorExceptionTest.php:27
C:\Git\calendart-googleadapter\test\Exception\ApiErrorExceptionTest.php:27
3) CalendArt\Adapter\Google\ApiErrorExceptionTest::testConstructWithExceptedFormat
Prophecy\Exception\Doubler\MethodNotFoundException: Method `Double\stdClass\P10::json()` is not defined.
C:\Git\calendart-googleadapter\test\Exception\ApiErrorExceptionTest.php:39
C:\Git\calendart-googleadapter\test\Exception\ApiErrorExceptionTest.php:39
4) CalendArt\Adapter\Google\ResponseHandlerTest::testHandleErrorsWithSuccessfulResponse
Prophecy\Exception\Doubler\MethodNotFoundException: Method `Double\stdClass\P11::getStatusCode()` is not defined.
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:20
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:20
--
There were 11 failures:
1) CalendArt\Adapter\Google\ResponseHandlerTest::testHandleErrors with data set #0 (400, 'Bad Request', 'CalendArt\Adapter\Google\Exce...eption')
Failed asserting that exception of type "Prophecy\Exception\Doubler\MethodNotFoundException" matches expected exception "CalendArt\Adapter\Google\Exception\BadRequestException". Message was: "Method `Double\stdClass\P12::getStatusCode()` is not defined." at
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
.
2) CalendArt\Adapter\Google\ResponseHandlerTest::testHandleErrors with data set #1 (401, 'Invalid credentials', 'CalendArt\Adapter\Google\Exce...eption')
Failed asserting that exception of type "Prophecy\Exception\Doubler\MethodNotFoundException" matches expected exception "CalendArt\Adapter\Google\Exception\InvalidCredentialsException". Message was: "Method `Double\stdClass\P13::getStatusCode()` is not defined." at
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
.
3) CalendArt\Adapter\Google\ResponseHandlerTest::testHandleErrors with data set #2 (403, 'Daily Limit Exceeded', 'CalendArt\Adapter\Google\Exce...eption')
Failed asserting that exception of type "Prophecy\Exception\Doubler\MethodNotFoundException" matches expected exception "CalendArt\Adapter\Google\Exception\DailyLimitExceededException". Message was: "Method `Double\stdClass\P14::getStatusCode()` is not defined." at
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
.
4) CalendArt\Adapter\Google\ResponseHandlerTest::testHandleErrors with data set #3 (403, 'User Rate Limit Exceeded', 'CalendArt\Adapter\Google\Exce...eption')
Failed asserting that exception of type "Prophecy\Exception\Doubler\MethodNotFoundException" matches expected exception "CalendArt\Adapter\Google\Exception\UserRateLimitExceededException". Message was: "Method `Double\stdClass\P15::getStatusCode()` is not defined." at
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
.
5) CalendArt\Adapter\Google\ResponseHandlerTest::testHandleErrors with data set #4 (403, 'Rate Limit Exceeded', 'CalendArt\Adapter\Google\Exce...eption')
Failed asserting that exception of type "Prophecy\Exception\Doubler\MethodNotFoundException" matches expected exception "CalendArt\Adapter\Google\Exception\RateLimitExceededException". Message was: "Method `Double\stdClass\P16::getStatusCode()` is not defined." at
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
.
6) CalendArt\Adapter\Google\ResponseHandlerTest::testHandleErrors with data set #5 (403, 'Calendar usage limits exceeded.', 'CalendArt\Adapter\Google\Exce...eption')
Failed asserting that exception of type "Prophecy\Exception\Doubler\MethodNotFoundException" matches expected exception "CalendArt\Adapter\Google\Exception\CalendarUsageLimitsExceededException". Message was: "Method `Double\stdClass\P17::getStatusCode()` is not defined." at
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
.
7) CalendArt\Adapter\Google\ResponseHandlerTest::testHandleErrors with data set #6 (404, 'Not Found', 'CalendArt\Adapter\Google\Exce...eption')
Failed asserting that exception of type "Prophecy\Exception\Doubler\MethodNotFoundException" matches expected exception "CalendArt\Adapter\Google\Exception\NotFoundException". Message was: "Method `Double\stdClass\P18::getStatusCode()` is not defined." at
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
.
8) CalendArt\Adapter\Google\ResponseHandlerTest::testHandleErrors with data set #7 (409, 'The requested identifier alre...exists', 'CalendArt\Adapter\Google\Exce...eption')
Failed asserting that exception of type "Prophecy\Exception\Doubler\MethodNotFoundException" matches expected exception "CalendArt\Adapter\Google\Exception\IdentifierAlreadyExistsException". Message was: "Method `Double\stdClass\P19::getStatusCode()` is not defined." at
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
.
9) CalendArt\Adapter\Google\ResponseHandlerTest::testHandleErrors with data set #8 (410, 'Gone', 'CalendArt\Adapter\Google\Exce...eption')
Failed asserting that exception of type "Prophecy\Exception\Doubler\MethodNotFoundException" matches expected exception "CalendArt\Adapter\Google\Exception\GoneException". Message was: "Method `Double\stdClass\P20::getStatusCode()` is not defined." at
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
.
10) CalendArt\Adapter\Google\ResponseHandlerTest::testHandleErrors with data set #9 (412, 'Precondition Failed', 'CalendArt\Adapter\Google\Exce...eption')
Failed asserting that exception of type "Prophecy\Exception\Doubler\MethodNotFoundException" matches expected exception "CalendArt\Adapter\Google\Exception\PreconditionException". Message was: "Method `Double\stdClass\P21::getStatusCode()` is not defined." at
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
.
11) CalendArt\Adapter\Google\ResponseHandlerTest::testHandleErrors with data set #10 (500, 'Backend Error', 'CalendArt\Adapter\Google\Exce...eption')
Failed asserting that exception of type "Prophecy\Exception\Doubler\MethodNotFoundException" matches expected exception "CalendArt\Adapter\Google\Exception\BackendException". Message was: "Method `Double\stdClass\P22::getStatusCode()` is not defined." at
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
C:\Git\calendart-googleadapter\test\ResponseHandlerTest.php:34
.
FAILURES!
Tests: 39, Assertions: 62, Errors: 4, Failures: 11.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment