Encapsulate tests.
Danack opened this issue · 1 comments
Danack commented
They're currently all running in the global scope.
This means it's really easy to break stuff - e.g. assigns a value to $count
overwrites the count()
function.
Deleted user commented
Simple solution with anonimus functions https://github.com/tito100/PHP-to-Javascript/commit/a1c39afc3b7ec1b6fedd2d89970880dd506221a8