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

Test fails to parse JSON in PHP7 #16

Open
thomaslorentsen opened this issue Jul 26, 2017 · 1 comment
Open

Test fails to parse JSON in PHP7 #16

thomaslorentsen opened this issue Jul 26, 2017 · 1 comment
Assignees
Labels

Comments

@thomaslorentsen
Copy link
Member

thomaslorentsen commented Jul 26, 2017

When testing domains, the JSON strings fails to be decoded in PHP7

1) RoundPartner\Test\Unit\Domain\DomainTest::testUpdateSubDomain with data set #0 ('[{\n  "nameservers" : [ {\n    ....."\n}]', 200)
OpenCloud\Common\Exceptions\JsonError: Syntax error
/home/travis/build/roundpartner/cloud/vendor/rackspace/php-opencloud/lib/OpenCloud/Common/Http/Message/Formatter.php:48
/home/travis/build/roundpartner/cloud/vendor/rackspace/php-opencloud/lib/OpenCloud/Common/Http/Message/Formatter.php:32
/home/travis/build/roundpartner/cloud/vendor/rackspace/php-opencloud/lib/OpenCloud/DNS/Resource/AbstractResource.php:37
/home/travis/build/roundpartner/cloud/src/Domain/Domain.php:85
/home/travis/build/roundpartner/cloud/src/Domain/Domain.php:71
/home/travis/build/roundpartner/cloud/src/Domain/Domain.php:59
/home/travis/build/roundpartner/cloud/tests/Unit/DNS/DomainTest.php:63
@thomaslorentsen
Copy link
Member Author

Fixed by rackspace/php-opencloud#712

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

No branches or pull requests

1 participant