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
It looks like it messes up test class name detection or something. Even a comment like // class A causes this. It happens it 8.0 and 7.4, but not in 7.0.
kazk
transferred this issue from codewars/codewars.com
Sep 27, 2021
Describe the bug
It seems that when I use PHP classes for kata I get an error. As soon as there is a PHP class in the solution, it fails.
To Reproduce
If I input the following empty PHP code for kata
Conway's Game of Life - Unlimited Edition:
I run tests, I get, as expected, a PHPUnit error message 'Failed asserting that two arrays are equal.' because my code does not pass the tests.
Now I add an empty class below
I re-run tests, I get a
Error : Call to undefined function get_generation()
I can see this issue on another PHP kata.
Expected behavior
PHP Classes should be usable in a PHP kata.
Screenshots
See this recording of my browser https://watch.screencastify.com/v/Ud5L3dxTj3UOK8LLlzIv
Browser
Chrome, however issue was reproduced by another user and code is executed server-side. So I don't think browser informations are useful.
Additional context
I wrote about this in discussion https://www.codewars.com/kata/52423db9add6f6fc39000354/discuss?#614ce089a155110033bb874b
The text was updated successfully, but these errors were encountered: