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

getMockFromWsdl does not handle urls with query params #2573

Closed
ostrolucky opened this issue Mar 17, 2017 · 0 comments
Closed

getMockFromWsdl does not handle urls with query params #2573

ostrolucky opened this issue Mar 17, 2017 · 0 comments

Comments

@ostrolucky
Copy link
Contributor

ostrolucky commented Mar 17, 2017

Q A
PHPUnit version 6.0.9
PHP version 7.1.2
Installation Method any
$ ./phpunit.phar src/AppBundle/Tests/DataProvider/JobBoard/BugTest.php 
PHPUnit 6.0.9 by Sebastian Bergmann and contributors.

E                                                                   1 / 1 (100%)

Time: 925 ms, Memory: 6.00MB

There was 1 error:

1) BugTest::testWsdlBug
ParseError: syntax error, unexpected '.', expecting '{'

/var/www/src/AppBundle/Tests/DataProvider/JobBoard/BugTest.php:9

ERRORS!
Tests: 1, Assertions: 0, Errors: 1.

Reproducible example:

use PHPUnit\Framework\TestCase;

class BugTest extends TestCase
{
    public function testWsdlBug()
    {
        $this->getMockFromWsdl('https://soapapi.findapprenticeship.service.gov.uk/Services/VacancyManagement/VacancyManagement51.svc?singleWsdl');
    }
}
@ostrolucky ostrolucky reopened this Mar 18, 2017
@ostrolucky ostrolucky changed the title Syntax error on getMockFromWsdl getMockFromWsdl does not handle urls with query params Mar 18, 2017
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

Successfully merging a pull request may close this issue.

1 participant