I'm trying to run codeception tests written by another dev at my organization. I'm on php 5.6 and this is a laravel 5 app with codeception 2.1. The specific error that I'm getting is
The use statement with non-compound name 'FunctionalTester' has no effect
Every codeception-generated functional test in our directory includes the line
use \FunctionalTester;; i can suppress the error just by adding as ft; to the end of the line, but that's not the point.
in some other examples online i see the keyword namespace instead of use here.
as a final example, the command php ./vendor/bin/codecept generate:cest functional foo generates the following file, (which will raise that error)
use \FunctionalTester;
class fooCest
{
public function _before(FunctionalTester $I)
{
}blah blah blah
btw, php is not my main language. Even if this use with no namespace were redundant, i don't see the point of raising on it. OK! Thanks!
usewith an object in the global namespace - a non-compound object. The code causing it is generated automatically by codeception. It is only happening on my system as far as I can tell.