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

Unexpected token near `(' #7

Open
MarM25 opened this issue Jun 29, 2017 · 1 comment
Open

Unexpected token near `(' #7

MarM25 opened this issue Jun 29, 2017 · 1 comment

Comments

@MarM25
Copy link

MarM25 commented Jun 29, 2017

Hi,
i'm not sure if the thing i found is a bug or if it's my fault. I installed a new symfony project in the Linux subsystem and runned phpunit. It seems like that your script is working fine (if i run the php.cmd it looks alright), but if i try to run the default unittest in phpstorm it's aborting with this:

[.] Bash path: C:\Windows\System32\bash.exe
[.] CWD: C:\Users\muell\AppData\Local\lxss\home\Marvin\OwnWebProject\api\tests\AppBundle\Controller
[.] ENV:
[.] Input arguments: C:/Users/muell/AppData/Local/Temp/ide-phpunit.php --no-configuration --filter /::testIndex( .*)?$/ Tests\AppBundle\Controller\DefaultControllerTest C:\Users\muell\AppData\Local\lxss\home\Marvin\OwnWebProject\api\tests\AppBundle\Controller\DefaultControllerTest.php
[.] Linux arguments: /mnt/c/Users/muell/AppData/Local/Temp/ide-phpunit.php --no-configuration --filter /::testIndex( .*)?$/ Tests\AppBundle\Controller\DefaultControllerTest /mnt/c/Users/muell/AppData/Local/lxss/home/Marvin/OwnWebProject/api/tests/AppBundle/Controller/DefaultControllerTest.php
[.] Linux command: php /mnt/c/Users/muell/AppData/Local/Temp/ide-phpunit.php --no-configuration --filter /::testIndex( .*)?$/ Tests\AppBundle\Controller\DefaultControllerTest /mnt/c/Users/muell/AppData/Local/lxss/home/Marvin/OwnWebProject/api/tests/AppBundle/Controller/DefaultControllerTest.php
[.] Windows command: C:\Windows\System32\bash.exe -c "php /mnt/c/Users/muell/AppData/Local/Temp/ide-phpunit.php --no-configuration --filter /::testIndex( .*)?$/ Tests\AppBundle\Controller\DefaultControllerTest /mnt/c/Users/muell/AppData/Local/lxss/home/Marvin/OwnWebProject/api/tests/AppBundle/Controller/DefaultControllerTest.php"

/bin/bash: -c: line 0: syntax error near unexpected token (' /bin/bash: -c: line 0: php /mnt/c/Users/muell/AppData/Local/Temp/ide-phpunit.php --no-configuration --filter /::testIndex( .*)?$/ Tests\AppBundle\Controller\DefaultControllerTest /mnt/c/Users/muell/AppData/Local/lxss/home/Marvin/OwnWebProject/api/tests/AppBundle/Controller/DefaultControllerTest.php'

I'm pretty sure somewhere is the wrong character used, but i dont have any idea where.
On WIndows i'm using the latest php 7.1.6 without xdebug (i think it's not necessary), on Ubuntu 7.0.18 with xdebug, and symfony is in version 3.3.2.

I hope my english will not trigger you, but i'm a very bloody german without any languageskills except a few programming languages :D
Best regards from Karlsruhe ^^

@ruslan-pelepets
Copy link

I see --filter param, do you run separate test method? If so, try my fork, as it has some improvements.

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