Codeception + Vagrant - Error 404

I am using a vagrant for my dev environment with a advanced app yii2. I install the codeception:


composer require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*"

My app is in: /var/www/Clipanel




# /var/www/CliPainel/tests/codeception/backend/codeception.yml


namespace: tests\codeception\backend

actor: Tester

paths:

    tests: .

    log: _output

    data: _data

    helpers: _support

settings:

    bootstrap: _bootstrap.php

    suite_class: \PHPUnit_Framework_TestSuite

    colors: true

    memory_limit: 1024M

    log: true

config:

    # the entry script URL (with host info) for functional and acceptance tests

    # PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL

    test_entry_url: http://localhost:8080/CliPainel/backend/web/index-test.php



in folder /var/www/CliPainel/tests/codeception/backend/ is running the command php -S localhost:8080

i receive a error 404 when the first test "LoginCept" is ready.


Codeception PHP Testing Framework v2.0.16

Powered by PHPUnit 4.7.7 by Sebastian Bergmann and contributors.


e[1mTests\codeception\backend.acceptance Tests (1) e[22m-------------------------------------------------------------------------

Modules: e[33mPhpBrowser, FixtureHelpere[39m

------------------------------------------------------------------------------------------------------------------------

e[35;1mEnsure login page workse[39;22m (LoginCept)

Scenario:

* I am on page "/CliPainel/backend/web/index-test.php/site/login"


e[36m  [Response] 404e[39m

e[36m  [Page] http://localhost:8080/CliPainel/backend/web/index-test.php/site/logine[39m

e[36m  [Cookies] []e[39m

e[36m  [Headers] {"Host":["localhost:8080"],"Connection":["close"],"Content-Type":["text/html; charset=UTF-8"],"Content-Length":["580"]}e[39m

* I am going to submit login form with no data

* I fill field "input[name="LoginForm[username]"]",""

e[37;41m FAIL e[39;49m


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

------------------------------------------------------------------------------------------------------------------------




Time: 8.5 seconds, Memory: 18.25Mb


There was 1 failure:


---------

1) Failed to ensure login page works in e[1mLoginCepte[22m (/var/www/CliPainel/tests/codeception/backend/./acceptance//LoginCept.php)

Couldn't fill field "input[name="LoginForm[username]"]","":

Form field by Label or CSS 'input[name="LoginForm[username]"]' was not found on page.


Scenario Steps:

3. e[37;41mI fill field "input[name="LoginForm[username]"]",""e[39;49m

2. I am going to submit login form with no data

1. I am on page "/CliPainel/backend/web/index-test.php/site/login"




e[37;41mFAILURES!e[0m

e[37;41mTests: 1e[0me[37;41m, Assertions: 0e[0me[37;41m, Failures: 1e[0me[37;41m.e[0m

What i am doing wrong?

I copy the file "index-test.php" again to web dir and the problem is solved.