phpunit - syntax error, unexpected T_USE, expecting T_FUNCTION in my SauceLabs test case -


I tried to follow SOSLSBs' PHP tutorials:

I tried to run it on Windows. So I follow every step to run this order:

  seller \ bin \ phpunit.bat WebDriverDemo.php  

this one Error generates: Parse error: Syntax error, unexpected T_USE, C: \ xampp \ htdocs \ sauce-tutorial \ vendor \ sauce \ sausage \ src \ sauce \ sausage \ WebDriverTestCase.php on line 6 < / Em>

T_FUNCTION is expected>

So I tried to view WebDriverTestCase.php on line 6 and this code is:

Named place sauce / sausage;

  Abstract class WebDriverTestCase Extended \ PHPUnit_Extensions_Selenium2TestCase {Use TestCase; // this is row 6}  

Is this incorrect with the code? I have not changed anything, I tried to tell the tutorial only. Any ideas?

I do not use PHP but on the basis that I found a Google search, Ensure that you are running a code with PHP 5.4 or later. Using the old version of PHP, I found the error in the case found on the web.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -