codecept run unit ExampleTest
You can further filter which tests are run by appending a method name to the class, separated by a colon (for Cest or Test formats):
php vendor/bin/codecept run tests/acceptance/SigninCest.php:^anonymousLogin$
$obj = new $c_name();
$obj::findOne($id);
в место 20 я хочу поставить input type="text"
капец! Не ужели переписать одну строчку это так сложно? Просто...
Functional Tests
Now that we’ve written some acceptance tests, functional tests are almost the same,
with one major difference: Functional tests don’t require a web server.
In simple terms we set the $_REQUEST, $_GET and $_POST variables and then we execute
the application from a test. This may be valuable, as functional tests are faster
and provide detailed stack traces on failures.