You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I migrated my codebase from php 5.6 to php 7.0 and I encounter an issue with my atoum test for one of my test.
This one depends on memcache. I try to reproduce the error on the helloWorld example by just adding this to it :
$memcache = new \mock\Memcache();
And it crash with this message :
There is 1 error:
=> vendor\project\tests\units\helloWorld::testSay():
==> Error PARSE ERROR in /srv/atoumtest/path/to/project/tests/units/helloWorld.php on unknown line, generated by file phar:///srv/atoumtest/path/to/atoum.phar/1/classes/mock/generator.php(205) : eval()'d code on line 247:
syntax error, unexpected '$', expecting variable (T_VARIABLE)
There is 1 uncompleted method:
=> vendor\project\tests\units\helloWorld::testSay() with exit code 255:
A php -v give me this :
PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.30-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies
Hi,
I migrated my codebase from php 5.6 to php 7.0 and I encounter an issue with my atoum test for one of my test.
This one depends on memcache. I try to reproduce the error on the helloWorld example by just adding this to it :
$memcache = new \mock\Memcache();
And it crash with this message :
A php -v give me this :
And a php path/to/atoum.phar -s
A php -m give me this (memcache is installed) :
Am I the only one to see this error with memcache and php7 ?
Thanks
The text was updated successfully, but these errors were encountered: